Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix broken spec.

  • Loading branch information...
commit e071aa9431bdc768b00e3e62c74095bd3dc14c83 1 parent 2bb7b71
@drapergeek authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/models/short_url_spec.rb
View
5 spec/models/short_url_spec.rb
@@ -4,15 +4,16 @@
describe "#save" do
context 'when there is not an entry with that name' do
it "returns false" do
- shorturl = ShortUrl.new(name: "myname", url: "myurl").save
+ shorturl = ShortUrl.new(name: "myname", url: "http://www.bing.com").save
shorturl = ShortUrl.new(name: "myname", url: "http://www.google.com")
+
expect(shorturl.save).to be_false
end
end
context 'when there is not an entry with that name' do
it 'returns true' do
- shorturl = ShortUrl.new(name: "myname", url: "myurl")
+ shorturl = ShortUrl.new(name: "myname", url: "http://myurl")
expect(shorturl.save).to be_true
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.