spec/github/repos/comments/get_spec.rb in github_api-0.8.0 vs spec/github/repos/comments/get_spec.rb in github_api-0.8.1

- old
+ new

@@ -39,16 +39,10 @@ commit_comment = subject.get user, repo, comment_id commit_comment.should be_a Hashie::Mash end end - context "resource not found" do - let(:body) { '' } - let(:status) { 404 } - - it "should fail to retrive resource" do - expect { - subject.get user, repo, comment_id - }.to raise_error(Github::Error::NotFound) - end + it_should_behave_like 'request failure' do + let(:requestable) { subject.get user, repo, comment_id } end + end # get