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.2.8 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.7 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb
onebox-1.2.6 spec/lib/onebox/engine/stack_exchange_onebox_spec.rb