spec/id_spec.rb in restruct-0.1.0 vs spec/id_spec.rb in restruct-0.2.0
- old
+ new
@@ -19,11 +19,10 @@
id_2 = Id.new id_1['bar']
id_2['baz'].must_equal 'foo:bar:baz'
end
it 'Be chainable' do
- id = Id.new 'foo'
- id['bar']['baz'].must_equal 'foo:bar:baz'
+ Id['foo']['bar']['baz'].must_equal 'foo:bar:baz'
end
it 'Accept symbols' do
id = Id.new :foo
id[:bar].must_equal 'foo:bar'
\ No newline at end of file