spec/github/repos/downloads_spec.rb in github_api-0.4.4 vs spec/github/repos/downloads_spec.rb in github_api-0.4.5

- old
+ new

@@ -56,11 +56,11 @@ end it "should return 404 with a message 'Not Found'" do expect { github.repos.downloads user, repo - }.to raise_error(Github::ResourceNotFound) + }.to raise_error(Github::Error::NotFound) end end end # downloads describe "download" do @@ -103,11 +103,11 @@ end it "should fail to retrive resource" do expect { github.repos.download user, repo, download_id - }.to raise_error(Github::ResourceNotFound) + }.to raise_error(Github::Error::NotFound) end end end # download describe "delete_download" do @@ -144,11 +144,11 @@ end it "should fail to find resource" do expect { github.repos.delete_download user, repo, download_id - }.to raise_error(Github::ResourceNotFound) + }.to raise_error(Github::Error::NotFound) end end end # delete_download describe "create_download" do @@ -197,11 +197,11 @@ end it "should faile to retrieve resource" do expect { github.repos.create_download(user, repo, inputs) - }.to raise_error(Github::ResourceNotFound) + }.to raise_error(Github::Error::NotFound) end end end # create_download describe 'upload' do @@ -232,10 +232,10 @@ end it "should faile to retrieve resource" do expect { github.repos.upload resource, file - }.to raise_error(Github::ResourceNotFound) + }.to raise_error(Github::Error::NotFound) end end end # upload