Skip to content

Commit

Permalink
Merge pull request hashie#31 from lmarburger/patch-1
Browse files Browse the repository at this point in the history
Fix assertions on a Dash's string representation
  • Loading branch information
Michael Bleigh committed Jan 11, 2012
2 parents c0a972d + ae5d52d commit 6728ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/hashie/dash_spec.rb
Expand Up @@ -28,12 +28,12 @@ class Subclassed < DashTest

it('subclasses Hashie::Hash') { should respond_to(:to_mash) }

its(:to_s) { should == '<#DashTest count=0 email="bob@example.com" first_name="Bob">' }
its(:to_s) { should == '#<DashTest count=0 email="bob@example.com" first_name="Bob">' }

it 'lists all set properties in inspect' do
subject.first_name = 'Bob'
subject.email = 'bob@example.com'
subject.inspect.should == '<#DashTest count=0 email="bob@example.com" first_name="Bob">'
subject.inspect.should == '#<DashTest count=0 email="bob@example.com" first_name="Bob">'
end

its(:count) { should be_zero }
Expand Down

0 comments on commit 6728ed2

Please sign in to comment.