File: fix_rspec_to_be_false_method.patch

package info (click to toggle)
ruby-fssm 0.2.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 364 kB
  • ctags: 214
  • sloc: ruby: 1,082; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 1,004 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
Description: Fix tests for both ruby 2.2 and 2.3
 In order to fix the tests for both ruby versions, it was necessary
 to change the be_false method to the new convention of rspec, named
 to_falsey
Author: Lucas Albuquerque Medeiros de Moura <lucas.moura128@gmail.com>
Last-updated: 2016-02-29
Forwarded: https://github.com/ttilley/fssm/pull/51 
Bug: https://github.com/ttilley/fssm/pull/51

Index: ruby-fssm/spec/monitor_spec.rb
===================================================================
--- ruby-fssm.orig/spec/monitor_spec.rb	2016-02-29 10:34:17.504421228 -0300
+++ ruby-fssm/spec/monitor_spec.rb	2016-02-29 10:35:41.176179147 -0300
@@ -59,7 +59,7 @@
       it "should call create callback upon file creation" do
         run_monitor(1) do
           file = @tmp_dir + "/newfile.rb"
-          File.exists?(file).should be_false
+          File.exists?(file).should be_falsey
           FileUtils.touch file
         end
         @handler_results[:create].should == [[@tmp_dir, 'newfile.rb']]