mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
add serializer template test
This commit is contained in:
parent
5f300a0d42
commit
59a177e8b5
@ -39,6 +39,7 @@ class SerializerGeneratorTest < Rails::Generators::TestCase
|
||||
assert_file "app/serializers/account_serializer.rb" do |serializer|
|
||||
assert_match(/^ attributes :id, :name, :description$/, serializer)
|
||||
assert_match(/^ has_one :business$/, serializer)
|
||||
assert_match(/^end\n*\z/, serializer)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user