spec/lib/url_validator_spec.rb in yukonisuru-0.0.1 vs spec/lib/url_validator_spec.rb in yukonisuru-1.0.0
- old
+ new
@@ -32,12 +32,9 @@
it { should_not allow_value('').for(:url) }
it { should_not allow_value(' ').for(:url) }
it { should_not allow_value(nil).for(:url) }
it { should_not allow_value("example").for(:url) }
- it { should_not allow_value("http://user_examplecom").for(:url) }
- it { should_not allow_value("http://user_example.com").for(:url) }
- it { should_not allow_value("http://user_example.a").for(:url) }
it { should_not allow_value("ftp://foo.bar.baz.com").for(:url) }
end
describe "url must be in a specific domain" do
let(:klass) do
\ No newline at end of file