Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
specs work on 3 ruby versions (1.8.7, 1.9.2, jruby 1.6.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed May 15, 2011
1 parent cebc8d0 commit aff97cd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/rb-fchange/fchange_spec.rb
Expand Up @@ -25,7 +25,7 @@
File.delete file
rescue
end
@results.should == [@fixture_path.to_s, @fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch new file" do
Expand All @@ -41,7 +41,7 @@
File.delete file
rescue
end
@results.should == [@fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch file update" do
Expand All @@ -50,7 +50,7 @@
run
FileUtils.touch file
stop
@results.should == [@fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch files update" do
Expand All @@ -62,7 +62,7 @@
FileUtils.touch file1
FileUtils.touch file2
stop
@results.should == [@fixture_path.to_s, @fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch new directory" do
Expand All @@ -78,7 +78,7 @@
Dir.delete dir
rescue
end
@results.should == [@fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch directory rename" do
Expand All @@ -99,7 +99,7 @@
Dir.delete dir_new
rescue
end
@results.should == [@fixture_path.to_s, @fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

it "should catch file rename" do
Expand All @@ -111,7 +111,7 @@
File.rename(file, file_new)
stop
File.rename(file_new, file)
@results.should == [@fixture_path.to_s, @fixture_path.to_s]
@results.include?(@fixture_path.to_s).should be_true
end

# it "should work with none-ANSI path" do
Expand Down

0 comments on commit aff97cd

Please sign in to comment.