Skip to content

Commit

Permalink
Minor fix of ftools specs (they need major help still). Fixes #166.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Phoenix committed Mar 27, 2010
1 parent 51630b2 commit 028b856
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions spec/ruby/library/ftools/chmod_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
end

it "changes the mode to 1st arg for files in 2nd arg" do
`ls -l chmod_test_1`.should =~ /^-rwxrwxrwx /
`ls -l chmod_test_2`.should =~ /^-rwxrwxrwx /
`ls -l chmod_test_1`.should =~ /^-rwxrwxrwx/
`ls -l chmod_test_2`.should =~ /^-rwxrwxrwx/
File.chmod 0644, "chmod_test_1", "chmod_test_2"
`ls -l chmod_test_1`.should =~ /^-rw-r--r-- /
`ls -l chmod_test_2`.should =~ /^-rw-r--r-- /
`ls -l chmod_test_1`.should =~ /^-rw-r--r--/
`ls -l chmod_test_2`.should =~ /^-rw-r--r--/
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/ruby/library/ftools/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
end

it "changes the mode to 1st arg for files in 2nd arg" do
`ls -l install_test_1`.should =~ /^-rwxrwxrwx /
`ls -l install_test_1`.should =~ /^-rwxrwxrwx/
File.install "install_test_1", "install_test_2", 0644
`ls -l install_test_2`.should =~ /^-rw-r--r-- /
`ls -l install_test_2`.should =~ /^-rw-r--r--/
end
end
end
Expand Down

0 comments on commit 028b856

Please sign in to comment.