Sha256: 71e8129adbc611d5f3a0e237eb49cc368c7886c42b6b501ef86e0dab025feefd

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

require 'spec_helper'

describe MultiMarkdown do
  context "with kramdown" do
    let(:library)  { :kramdown            }
    let(:constant) { 'Kramdown::Document' }

    before { Bundler.setup(library) }

    describe "find" do
      before { require 'kramdown' }

      it "should find the Kramdown::Document" do
        subject.find(library).name.should == constant
      end
    end

    describe "use" do
      it "should load and find Kramdown::Document" do
        subject.use(library).name.should == constant
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
multi_markdown-0.2.0 spec/libraries/kramdown_spec.rb
multi_markdown-0.1.0 spec/libraries/kramdown_spec.rb
multi_markdown-0.1.0.pre1 spec/libraries/kramdown_spec.rb