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

- old
+ new

@@ -51,16 +51,10 @@ repository = subject.edit user, repo, inputs repository.name.should == 'Hello-World' end end - context "failed to edit resource" do - let(:body) { '' } - let(:status) { 404 } - - it "should fail to find resource" do - expect { - subject.edit user, repo, inputs - }.to raise_error(Github::Error::NotFound) - end + it_should_behave_like 'request failure' do + let(:requestable) { subject.edit user, repo, inputs } end + end # edit