Fixed test for Rails versions prior to 4

This commit is contained in:
Todd Bealmear 2013-11-05 10:42:55 -08:00
parent e0a564aa68
commit 6f04f86ae5

View File

@ -11,6 +11,8 @@ class ScaffoldControllerGeneratorTest < Rails::Generators::TestCase
arguments %w(account name:string description:text business:references)
def test_generated_controller
return true if Rails::VERSION::MAJOR < 4
run_generator
assert_file 'app/controllers/accounts_controller.rb' do |content|