spec/dicer/delegator_spec.rb in dicer-0.2.0 vs spec/dicer/delegator_spec.rb in dicer-0.3.0
- old
+ new
@@ -29,6 +29,20 @@
describe '#clean' do
subject { delegated.clean }
it { should be_true }
end
+
+ describe '#pure' do
+ subject(:pure) { delegated.pure }
+
+ it { should == delegated }
+ it { should == entity }
+
+ describe '#object_id' do
+ subject { pure.object_id }
+
+ it { should_not == delegated.object_id }
+ it { should == entity.object_id }
+ end
+ end
end