Sha256: 2b37e6ab4f6a134d40d5e2318abb706de2bd802a61373be9d1524b7f49c1097a
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' require 'multi_markdown' describe MultiMarkdown do it "should have a VERSION constant" do subject.const_get('VERSION').should_not be_empty end describe "find" do it "should raise an ArgumentError for unknown libraries" do lambda { subject.find(:foo) }.should raise_error(ArgumentError) end it "should raise a NameError when the library could not be found" do lambda { subject.find(:kramdown) }.should raise_error(NameError) end end describe "use" do it "should raise an ArgumentError for unknown libraries" do lambda { subject.use(:foo) }.should raise_error(ArgumentError) end it "should raise a LoadError when the library could not be found" do lambda { subject.use(:kramdown) }.should raise_error(LoadError) end end describe "load" do before { Bundler.setup(:rdiscount, :kramdown, :redcarpet) } it "should load the first available library" do subject.load.name.should == subject::CONSTANTS[:redcarpet] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_markdown-0.2.0 | spec/multi_markdown_spec.rb |