mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Fixed test for Rails versions prior to 4
This commit is contained in:
parent
e0a564aa68
commit
6f04f86ae5
@ -11,6 +11,8 @@ class ScaffoldControllerGeneratorTest < Rails::Generators::TestCase
|
|||||||
arguments %w(account name:string description:text business:references)
|
arguments %w(account name:string description:text business:references)
|
||||||
|
|
||||||
def test_generated_controller
|
def test_generated_controller
|
||||||
|
return true if Rails::VERSION::MAJOR < 4
|
||||||
|
|
||||||
run_generator
|
run_generator
|
||||||
|
|
||||||
assert_file 'app/controllers/accounts_controller.rb' do |content|
|
assert_file 'app/controllers/accounts_controller.rb' do |content|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user