spec/lib/onebox/preview_spec.rb in onebox-1.5.21 vs spec/lib/onebox/preview_spec.rb in onebox-1.5.22

- old
+ new

@@ -15,10 +15,10 @@ let(:preview_url) { "http://www.amazon.com/product" } let(:preview) { described_class.new(preview_url) } describe "#to_s" do it "returns some html if given a valid url" do - title = "Knit Noro: Accessories" + title = "Seven Languages in Seven Weeks: A Pragmatic Guide to Learning Programming Languages (Pragmatic Programmers)" expect(preview.to_s).to include(title) end it "returns an empty string if the resource is missing" do expect(described_class.new("http://www.amazon.com/404-url").to_s).to eq("")