FIX: youtube preview video title link doesn't work

This commit is contained in:
Régis Hanol
2015-04-01 18:23:27 +02:00
parent 87ef1d0de1
commit 0f4a4651a9
6 changed files with 16 additions and 28 deletions

View File

@@ -47,8 +47,8 @@ describe TopicLinkClick do
context 'without a url' do
let(:click) { TopicLinkClick.create_from(url: "url that doesn't exist", post_id: @post.id, ip: '127.0.0.1') }
it "returns nil" do
expect(click).to eq(nil)
it "returns the url" do
expect(click).to eq("url that doesn't exist")
end
end