summaryrefslogtreecommitdiff
path: root/spec/hashie/dash_spec.rb
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2009-11-16 00:51:37 -0200
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2009-11-16 00:51:37 -0200
commitf20d0ac3969a5679c57434b734e4725490ce249a (patch)
tree7ffb6800467e7270eac041cce4a3e9582a522213 /spec/hashie/dash_spec.rb
parentbe69275fb3febe47382592288f49fecf5f204483 (diff)
downloadhashie-f20d0ac3969a5679c57434b734e4725490ce249a.tar.gz
Fixing inspect for Dashes
Diffstat (limited to 'spec/hashie/dash_spec.rb')
-rw-r--r--spec/hashie/dash_spec.rb6
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