spec/cfoundry/v2/route_spec.rb in cfoundry-1.1.0.rc3 vs spec/cfoundry/v2/route_spec.rb in cfoundry-1.1.0.rc4
- old
+ new
@@ -1,13 +1,14 @@
# encoding: UTF-8
require 'spec_helper'
module CFoundry::V2
describe Route do
- subject { Route.new(nil, nil) }
+ subject { Route.new(nil, fake_client) }
describe "validations" do
it { should validate_presence_of(:domain) }
+ it { should validate_presence_of(:space) }
# http://tools.ietf.org/html/rfc1035
it "only allows host names according to RFC1035" do
message = "can only include a-z, 0-9 and -"