Created
April 8, 2014 18:51
-
-
Save eviltrout/10170564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Onebox::Engine::WikipediaOnebox do | |
before(:all) do | |
@link = "http://en.wikipedia.org/wiki/Billy_Jack" | |
end | |
include_context "engines" | |
it_behaves_like "an engine" | |
describe "#to_html" do | |
it "includes article image" do | |
expect(html).to include("Billy_Jack_poster.jpg") | |
end | |
it "includes summary" do | |
expect(html).to include("Billy Jack is a 1971 action/drama") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment