Permalink
Browse files

fix gzip test (for 1.9.2)

check the actual value doesn't change instead of not allowing .<< on it
  • Loading branch information...
1 parent 2bef4ce commit 2412581c17b58e419749e6cdab9c4160925d7b80 @royosherove royosherove committed Mar 24, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/unit/gzip_spec.rb
View
@@ -43,21 +43,21 @@ def gzip(config = {}, backup = def_backup)
describe "when already compressed" do
- before(:each) { @gzip = gzip({}, :compressed => true) }
+ before(:each) { @gzip = gzip({}, :extension => ".foo", :command => "foobar", :compressed => true) }
it "should not touch extension" do
- dont_allow(@backup.extension).<< anything
@gzip.process
+ @backup.extension.should == ".foo"
end
it "should not touch command" do
- dont_allow(@backup.command).<< anything
@gzip.process
+ @backup.command.should == "foobar"
end
it "should not touch compressed" do
- dont_allow(@backup).compressed = anything
@gzip.process
+ @backup.compressed.should == true
end
end
end

0 comments on commit 2412581

Please sign in to comment.