Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use RSpec instead of Bacon

  • Loading branch information...
commit b514fe752fb0af72c37d10e7f361b6d2f9a75c0f 1 parent 3911247
@nakajima authored
Showing with 7 additions and 7 deletions.
  1. +6 −6 spec/makers_mark_spec.rb
  2. +1 −1  spec/spec_helper.rb
View
12 spec/makers_mark_spec.rb
@@ -1,13 +1,13 @@
require File.join(File.dirname(__FILE__), 'spec_helper')
describe 'MakersMark' do
- extend TestHelp
+ include TestHelp
it 'generates HTML from markdown' do
with_markdown <<-MD
|# The title
MD
- Nokogiri::HTML(result).at('h1').should.not.be.nil
+ Nokogiri::HTML(result).at('h1').should_not be_nil
end
it 'syntax highlights' do
@@ -19,7 +19,7 @@
| end
|@@@
MD
- Nokogiri::HTML(result).at('.highlight.ruby').should.not.be.nil
+ Nokogiri::HTML(result).at('.highlight.ruby').should_not be_nil
end
# this one is hard
@@ -29,14 +29,14 @@
| (function() { })();
|@@@
MD
- Nokogiri(result).at('.highlight.js').should.not.be.nil
+ Nokogiri(result).at('.highlight.js').should_not be_nil
end
it "allows nested markdown" do
with_markdown <<-MD
| # This should be markdown
MD
- Nokogiri(result).at('h1').should.be.nil
- Nokogiri(result).at('pre').should.not.be.nil
+ Nokogiri(result).at('h1').should be_nil
+ Nokogiri(result).at('pre').should_not be_nil
end
end
View
2  spec/spec_helper.rb
@@ -1,6 +1,6 @@
require 'rubygems'
require 'nokogiri'
-require 'bacon'
+require 'spec'
require File.dirname(__FILE__) + '/../lib/makers-mark'
Please sign in to comment.
Something went wrong with that request. Please try again.