Sha256: aefce7f6e103bf4ff43c9a21e97042925eef919ad0b976aa77009acfbe351ca9

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'

describe MultiMarkdown do
  context "with redcarpet" do
    let(:library)  { :redcarpet        }
    let(:constant) { 'RedcarpetCompat' }

    before { Bundler.setup(library) }

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

      it "should find the RedcarpetCompat" do
        subject.find(library).name.should == constant
      end
    end

    describe "use" do
      it "should load and find RedcarpetCompat" 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/redcarpet_spec.rb
multi_markdown-0.1.0 spec/libraries/redcarpet_spec.rb
multi_markdown-0.1.0.pre1 spec/libraries/redcarpet_spec.rb