diff options
author | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2009-11-16 00:51:37 -0200 |
---|---|---|
committer | André Luis Leal Cardoso Junior <andrehjr@gmail.com> | 2009-11-16 00:51:37 -0200 |
commit | f20d0ac3969a5679c57434b734e4725490ce249a (patch) | |
tree | 7ffb6800467e7270eac041cce4a3e9582a522213 /spec/hashie/dash_spec.rb | |
parent | be69275fb3febe47382592288f49fecf5f204483 (diff) | |
download | hashie-f20d0ac3969a5679c57434b734e4725490ce249a.tar.gz |
Fixing inspect for Dashes
Diffstat (limited to 'spec/hashie/dash_spec.rb')
-rw-r--r-- | spec/hashie/dash_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/hashie/dash_spec.rb b/spec/hashie/dash_spec.rb index 97ed3c1..3a71c59 100644 --- a/spec/hashie/dash_spec.rb +++ b/spec/hashie/dash_spec.rb @@ -11,6 +11,12 @@ describe Hashie::Dash do (Hashie::Dash < Hash).should be_true end + it '#inspect should be ok!' do + dash = DashTest.new + dash.email = "abd@abc.com" + dash.inspect.should == "<#DashTest count=0 email=\"abd@abc.com\" first_name=nil>" + end + describe ' creating properties' do it 'should add the property to the list' do DashTest.property :not_an_att |