diff options
author | Michael Bleigh <michael@intridea.com> | 2012-01-11 13:40:48 -0800 |
---|---|---|
committer | Michael Bleigh <michael@intridea.com> | 2012-01-11 13:40:48 -0800 |
commit | 6728ed259b4e8e679901b1d64e1d791f28ec186a (patch) | |
tree | a7156986ed7ab6653e4d26d01affdcac6b01654f | |
parent | c0a972d322f95548b85ac2d37a303d5b2c86dc84 (diff) | |
parent | ae5d52d3344e98eed0f7c70d803dc3d770b09a87 (diff) | |
download | hashie-6728ed259b4e8e679901b1d64e1d791f28ec186a.tar.gz |
Merge pull request #31 from lmarburger/patch-1
Fix assertions on a Dash's string representation
-rw-r--r-- | spec/hashie/dash_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/hashie/dash_spec.rb b/spec/hashie/dash_spec.rb index 893f903..5922a3f 100644 --- a/spec/hashie/dash_spec.rb +++ b/spec/hashie/dash_spec.rb @@ -28,12 +28,12 @@ describe DashTest do 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 } |