Sha256: bf8aef948dd98d67c106c9d02a4c156cae2b6c52b23bff820e358e4d6fb6d631

Contents?: true

Size: 545 Bytes

Versions: 43

Compression:

Stored size: 545 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.com", 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

43 entries across 43 versions & 1 rubygems

Version Path
onebox-1.5.21 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.20 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.19 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.18 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.17 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.16 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.14 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.13 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.12 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.11 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.10 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.9 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.8 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.7 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.6 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.5 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.3 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.2 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.1 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.5.0 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb