This is a test on --skip-sprockets, not --skip-active-record

(cherry picked from commit 0c79098720e46e2a4a8380703ab9abc7dd0a4121)
This commit is contained in:
Franck Verrot
2011-08-21 22:44:27 +02:00
parent 61fa6006db
commit f63a1341a7

View File

@@ -174,7 +174,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "test/performance/browsing_test.rb"
end
def test_generator_if_skip_active_record_is_given
def test_generator_if_skip_sprockets_is_given
run_generator [destination_root, "--skip-sprockets"]
assert_file "config/application.rb" do |content|
assert_match(/#\s+require\s+["']sprockets\/railtie["']/, content)