From 7afac9cd5cdfee759d9231fc1d63f23ac97ebfd7 Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Tue, 5 Jun 2012 10:18:05 +0200 Subject: [PATCH] Fix the tests --- test/generators_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/generators_test.rb b/test/generators_test.rb index 001a1d7e9..5b0b657e5 100644 --- a/test/generators_test.rb +++ b/test/generators_test.rb @@ -55,13 +55,13 @@ def test_uses_given_parent def test_generates_attributes_and_associations run_generator assert_file "app/serializers/account_serializer.rb" do |serializer| - assert_match(/^ attributes :name, :description$/, serializer) + assert_match(/^ attributes :id, :name, :description$/, serializer) assert_match(/^ has_one :business$/, serializer) end end def test_with_no_attributes_does_not_add_extra_space run_generator ["account"] - assert_file "app/serializers/account_serializer.rb", /class AccountSerializer < ActiveModel::Serializer\nend/ + assert_file "app/serializers/account_serializer.rb", /class AccountSerializer < ActiveModel::Serializer\n attributes :id\nend/ end end