test/all_test.rb in soveran-override-0.0.3 vs test/all_test.rb in soveran-override-0.0.4
- old
+ new
@@ -82,6 +82,12 @@
assert_equal 1, @foo.bar
assert_equal 2, @foo.baz
assert_equal 3, @foo.qux
end
end
+
+ context "chaining successive calls" do
+ should "return the object and allow chained calls" do
+ assert_equal 1, override(@foo, :bar => 1).bar
+ end
+ end
end