spec/github/orgs_spec.rb in github_api-0.4.4 vs spec/github/orgs_spec.rb in github_api-0.4.5
- old
+ new
@@ -61,11 +61,11 @@
end
it "should return 404 with a message 'Not Found'" do
expect {
github.orgs.orgs user
- }.to raise_error(Github::ResourceNotFound)
+ }.to raise_error(Github::Error::NotFound)
end
end
end # orgs
describe "org" do
@@ -103,11 +103,11 @@
end
it "should fail to retrive resource" do
expect {
github.orgs.org org
- }.to raise_error(Github::ResourceNotFound)
+ }.to raise_error(Github::Error::NotFound)
end
end
end # org
describe "edit_org" do
@@ -146,10 +146,10 @@
end
it "should fail to find resource" do
expect {
github.orgs.edit_org org
- }.to raise_error(Github::ResourceNotFound)
+ }.to raise_error(Github::Error::NotFound)
end
end
end # edit_org
end # Github::Orgs