summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMislav Marohnić <mislav.marohnic@gmail.com>2010-08-26 13:23:48 +0200
committerMislav Marohnić <mislav.marohnic@gmail.com>2010-08-26 13:23:48 +0200
commit9518745b4dced41ee633d56818148d838a63ad3b (patch)
tree03c52a803019a9d7c08bb049c9d09193a89eedcf
parent6cc477c02ece71b45247083b105e5a727dbf97d6 (diff)
downloadhashie-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.rb3
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