~ubuntu-branches/ubuntu/wily/ruby-redcloth/wily

« back to all changes in this revision

Viewing changes to debian/patches/rspec3-test-fix

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-09-08 13:34:57 UTC
  • mfrom: (6.1.3 wily-proposed)
  • Revision ID: package-import@ubuntu.com-20150908133457-zxj2yry44yfzwjlq
Tags: 4.2.9-5build1
No-change to add ruby2.2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
6
---
 
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
 
10
@@ -11,8 +11,8 @@
 
11
   end
 
12
   
 
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
 
18
   end
 
19
   
 
20
   it "should show the version as a string" do
 
21
@@ -21,7 +21,7 @@
 
22
   end
 
23
   
 
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)
 
29
   end