1
Description: Fix tests to run with RSpec 3.x
2
RSpec 3.x redefined the matchers like be_true and be_false to be_truthy and
3
be_falsey respectively. Fixing the tests to follow those modifications.
4
Author: Balasankar C <balasankarc@autistici.org>
5
Last-Update: 2015-07-08
7
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8
--- a/spec/parser_spec.rb
9
+++ b/spec/parser_spec.rb
13
it "should have a VERSION" do
14
- RedCloth.const_defined?("VERSION").should be_true
15
- RedCloth::VERSION.const_defined?("STRING").should be_true
16
+ RedCloth.const_defined?("VERSION").should be_truthy
17
+ RedCloth::VERSION.const_defined?("STRING").should be_truthy
20
it "should show the version as a string" do
24
it "should have EXTENSION_LANGUAGE" do
25
- RedCloth.const_defined?("EXTENSION_LANGUAGE").should be_true
26
+ RedCloth.const_defined?("EXTENSION_LANGUAGE").should be_truthy
27
RedCloth::EXTENSION_LANGUAGE.should_not be_empty
28
RedCloth::DESCRIPTION.should include(RedCloth::EXTENSION_LANGUAGE)