Sha256: 63be68348d096f107879b67db991a4b9aa713feb45ee3c7b9d5105585fc6fc24
Contents?: true
Size: 479 Bytes
Versions: 1
Compression:
Stored size: 479 Bytes
Contents
require "spec_helper" describe Onebox::Engine::ExampleOnebox do before(:all) do @link = "http://example.com" fake(@link, response(described_class.template_name)) end before(:each) { Onebox.defaults.cache.clear } let(:link) { @link } it_behaves_like "an engine" describe "#to_html" do let(:html) { described_class.new(link).to_html } it "returns template if given valid data" do expect(html).to include("Example Domain 1") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/example_onebox_spec.rb |