spec/cfoundry/errors_spec.rb in cfoundry-0.5.1.rc1 vs spec/cfoundry/errors_spec.rb in cfoundry-0.5.1.rc2

- old
+ new

@@ -10,9 +10,17 @@ its(:method) { should eq "POST" } its(:uri) { should eq '/blah' } its(:parent) { should eq parent } end + describe CFoundry::InvalidTarget do + let(:target) { "http://--foo-bar" } + subject { CFoundry::InvalidTarget.new(target) } + + its(:to_s) { should eq "Invalid target URI: #{target}"} + its(:target) { should eq target } + end + describe CFoundry::APIError do let(:request) { { :method => "GET", :url => "http://api.cloudfoundry.com/foo", :headers => {} } } let(:response_body) { "NOT FOUND" } let(:response) { { :status => 404, :headers => {}, :body => response_body } }