spec/cfoundry/v2/route_spec.rb in cfoundry-2.2.0.rc1 vs spec/cfoundry/v2/route_spec.rb in cfoundry-2.2.0.rc2
- old
+ new
@@ -27,10 +27,10 @@
end
end
describe "errors" do
before do
- stub(route).create! { raise CFoundry::RouteHostTaken.new("the host is taken", 210003) }
+ route.stub(:create!) { raise CFoundry::RouteHostTaken.new("the host is taken", 210003) }
end
it "populates errors on host" do
route.create
route.errors[:host].first.should =~ /the host is taken/i