Sha256: aa0f6c906ba56d3e4ede764a75072cc9aadd0cef68f8f2d7020e8dc859bf45fa

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require "spec_helper"

describe Onebox::View do
  let(:view) { described_class.new("example", true) }
  let(:html) { view.to_html({ url: "http://example.com" }) }

  describe "#to_html" do
    it "renders engine partial within layout template" do
      expect(html).to include(%|class="onebox"|)
    end

    it "renders the url" do
      expect(html).to include("http://example.com")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.1.0 spec/lib/onebox/view_spec.rb