File: fix_tests_for_rspec3.3.0.patch

package info (click to toggle)
ruby-cliver 0.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 208 kB
  • sloc: ruby: 760; makefile: 3
file content (54 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Description: Fix tests for rspec 3.3.0
 For newer rspec versions, the methods be_false and be_true don't exist
 anymore. Their behaviour was replaced by be_falsey and be_truthy,
 respectivelly. Therefore, to fix the build, the test was updated with
 these new methods signatures.

 This fix can be found on the upstream project, however a new release
 was not made yet with the fix described above.

Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com>
Last-updated: 2016-03-01
Forwarded: not-needed 
Bug: not-needed

Index: ruby-cliver/spec/cliver_spec.rb
===================================================================
--- ruby-cliver.orig/spec/cliver_spec.rb	2016-03-01 13:49:50.498689244 -0300
+++ ruby-cliver/spec/cliver_spec.rb	2016-03-01 13:51:24.978428202 -0300
@@ -62,7 +62,7 @@
 
     context '::dependency_unmet?' do
       let(:method) { :dependency_unmet? }
-      it { should be_false }
+      it { should be_falsey }
     end
     context '::detect' do
       let(:method) { :detect }
@@ -191,7 +191,7 @@
     end
     context '::dependency_unmet?' do
       let(:method) { :dependency_unmet? }
-      it { should be_true }
+      it { should be_truthy }
     end
     context '::detect' do
       let(:method) { :detect }
@@ -219,7 +219,7 @@
       end
       context '::dependency_unmet?' do
         let(:method) { :dependency_unmet? }
-        it { should be_true }
+        it { should be_truthy }
       end
       context '::detect' do
         let(:method) { :detect }
@@ -246,7 +246,7 @@
     end
     context '::dependency_unmet?' do
       let(:method) { :dependency_unmet? }
-      it { should be_true }
+      it { should be_truthy }
     end
     context '::detect' do
       let(:method) { :detect }