spec/issue_spec.rb in gitmine-0.1.4.pre.1 vs spec/issue_spec.rb in gitmine-0.1.5

- old
+ new

@@ -49,12 +49,13 @@ issue.status.should == 'Completed' end end describe "#add_note" do + let(:httparty_response) { mock(:http_party_response, :code => 200) } it "should PUT a note" do issue.stub!(:id) { 1 } - issue.class.should_receive(:put).with('/1.xml', :query => {:notes => "Hello"}, :body => "") + issue.class.should_receive(:put).with('/1.xml', :query => {:notes => "Hello"}, :body => "") { httparty_response } issue.add_note("Hello") end end end