Sha256: 6719c1cc965e7e1db5e0392b6a6aa406696fa3bce3f5012619ecceaf62a4375b

Contents?: true

Size: 610 Bytes

Versions: 142

Compression:

Stored size: 610 Bytes

Contents

require "spec_helper"

describe Onebox::Engine::GithubBlobOnebox do
  before(:all) do
    @link = "https://github.com/discourse/discourse/blob/master/lib/oneboxer/github_blob_onebox.rb"
    fake("https://raw.github.com/discourse/discourse/master/lib/oneboxer/github_blob_onebox.rb", response(described_class.onebox_name))
  end

  include_context "engines"
  it_behaves_like "an engine"

  describe "#to_html" do
    it "includes file name" do
      expect(html).to include("github_blob_onebox.rb")
    end

    it "includes blob contents" do
      expect(html).to include("module Oneboxer")
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
onebox-1.5.34 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.33 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.32 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.31 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.30 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.29 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.28 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.27 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.26 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.25 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.24 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.23 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.22 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.21 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.20 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.19 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.18 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.17 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.16 spec/lib/onebox/engine/github_blob_onebox_spec.rb
onebox-1.5.14 spec/lib/onebox/engine/github_blob_onebox_spec.rb