From 9518745b4dced41ee633d56818148d838a63ad3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 26 Aug 2010 13:23:48 +0200 Subject: 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. --- spec/hashie/trash_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1