diff options
author | Mislav Marohnić <mislav.marohnic@gmail.com> | 2010-08-26 13:23:48 +0200 |
---|---|---|
committer | Mislav Marohnić <mislav.marohnic@gmail.com> | 2010-08-26 13:23:48 +0200 |
commit | 9518745b4dced41ee633d56818148d838a63ad3b (patch) | |
tree | 03c52a803019a9d7c08bb049c9d09193a89eedcf | |
parent | 6cc477c02ece71b45247083b105e5a727dbf97d6 (diff) | |
download | hashie-9518745b4dced41ee633d56818148d838a63ad3b.tar.gz |
fix broken Trash spec example
Simply check that an already defined property is present,
and use symbol keys for properties. Redefining the test class
is a bad idea in spec examples, so don't do that.
-rw-r--r-- | spec/hashie/trash_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/hashie/trash_spec.rb b/spec/hashie/trash_spec.rb index 38fae0d..4c1e2a7 100644 --- a/spec/hashie/trash_spec.rb +++ b/spec/hashie/trash_spec.rb @@ -9,8 +9,7 @@ describe Hashie::Trash do describe 'translating properties' do it 'adds the property to the list' do - TrashTest.property :not_an_att, :from => :notAnAtt - TrashTest.properties.should include('not_an_att') + TrashTest.properties.should include(:first_name) end it 'creates a method for reading the property' do |