Skip to content

Commit c8fd964

Browse files
author
Rafael Mendonça França
committed
Chaging the public path doesn't work on Rails 3.0
1 parent 96ef202 commit c8fd964

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/test_railtie.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ def test_manifest_path
187187
end
188188

189189
def test_manifest_path_respects_rails_public_path
190-
app.configure do
191-
config.paths['public'] = 'test_public'
192-
end
193-
app.initialize!
190+
unless Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
191+
app.configure do
192+
config.paths['public'] = 'test_public'
193+
end
194+
app.initialize!
194195

195-
assert_match %r{test_public/assets/manifest-.*.json}, ActionView::Base.assets_manifest.path
196+
assert_match %r{test_public/assets/manifest-.*.json}, ActionView::Base.assets_manifest.path
197+
end
196198
end
197199
end

0 commit comments

Comments
 (0)