spec/github/activity/watching/watching_spec.rb in github_api-0.8.1 vs spec/github/activity/watching/watching_spec.rb in github_api-0.8.2
- old
+ new
@@ -11,21 +11,21 @@
context "with username ane reponame passed" do
context "this repo is being watched by the user"
before do
stub_get(request_path).
- to_return(:body => "", :status => 404,
+ to_return(:body => "[]", :status => 404,
:headers => {:user_agent => subject.user_agent})
end
it "should return false if resource not found" do
watching = subject.watching? user, repo
watching.should be_false
end
it "should return true if resoure found" do
stub_get(request_path).
- to_return(:body => "", :status => 200,
+ to_return(:body => "[]", :status => 200,
:headers => {:user_agent => subject.user_agent})
watching = subject.watching? user, repo
watching.should be_true
end
end