mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fixed test for Rails versions prior to 4
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user