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']]
|