Fixes and testing for class proxy

This commit is contained in:
Sam Lown 2010-06-18 21:11:02 +02:00
parent 061c7a0154
commit 9f1eea8d32
2 changed files with 5 additions and 1 deletions

View file

@ -60,6 +60,10 @@ describe "Proxy Class" do
@us.first_from_view('by_title', 'bbb', :limit => 1)
end
it "should allow dynamic view matching for single elements" do
@us.should_receive(:first_from_view).with('by_title', 'bbb')
@us.find_by_title('bbb')
end
it "should yield" do
things = []