Created
March 7, 2013 19:42
-
-
Save jjb/5111128 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "#bar" do | |
let(:foo){FactoryGirl.build_stubbed(:foo)} | |
let(:bar_id){double("bar_id")} | |
let(:bar){double("bar")} | |
subject{foo.bar} | |
before do | |
foo.stub(:bar_id){bar_id} | |
Foo.stub(:find).with(bar_id){bar} | |
end | |
it{should eq bar} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment