Sha256: 045900eeb19b52beb8c82ea912c8c1bcf7684e5bba3010f7c79bb6fef97562c9

Contents?: true

Size: 541 Bytes

Versions: 6

Compression:

Stored size: 541 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::StackExchangeOnebox do
  before(:all) do
    @link = "http://stackoverflow.com/questions/17992553/concept-behind-these-four-lines-of-tricky-c-code"
    fake("http://api.stackexchange.com/2.1/questions/17992553?site=stackoverflow", response(described_class.onebox_name))
  end

  include_context "engines"
  it_behaves_like "an engine"

  describe "#to_html" do
    it "includes question" do
      expect(html).to include("Concept behind these four lines of tricky C++ code")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
onebox-1.2.5 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.4 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.3 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.2 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.1 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.0 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb