Skip to content

Instantly share code, notes, and snippets.

@eviltrout
Created April 8, 2014 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eviltrout/10170564 to your computer and use it in GitHub Desktop.
Save eviltrout/10170564 to your computer and use it in GitHub Desktop.
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