spec/remote_spec.rb in nexus_cli-0.1.2 vs spec/remote_spec.rb in nexus_cli-0.2.0

- old
+ new

@@ -33,6 +33,11 @@ it "gives you errors when you attempt to get an artifact's info and it cannot be found" do RestClient::Resource.any_instance.stub(:get).and_raise(RestClient::ResourceNotFound) expect {NexusCli::Remote.get_artifact_info "com.something:something:1.0.0:tgz"}.to raise_error(NexusCli::ArtifactNotFoundException) end + + it "gives you errors when you attempt to get an artifact's custom info and it cannot be found" do + RestClient::Resource.any_instance.stub(:get).and_raise(RestClient::ResourceNotFound) + expect {NexusCli::Remote.get_artifact_custom_info "com.something:something:1.0.0:tgz"}.to raise_error(NexusCli::ArtifactNotFoundException) + end end \ No newline at end of file