diff options
| author | Markus Roberts <Markus@reality.com> | 2010-06-28 16:00:16 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-06-28 16:00:16 -0700 |
| commit | 0fa10a6a6315959e5cae1e61aef13610ec126e13 (patch) | |
| tree | 9ebb2240f6f8550f0b6b52bf16b98657953c0c75 /spec/unit/network/http | |
| parent | 2ab123f5a9ef045c0ea7acf109b5ea67fc9e5cf7 (diff) | |
| download | puppet-0fa10a6a6315959e5cae1e61aef13610ec126e13.tar.gz puppet-0fa10a6a6315959e5cae1e61aef13610ec126e13.tar.xz puppet-0fa10a6a6315959e5cae1e61aef13610ec126e13.zip | |
Cleaning up various warnings in specs
There were a bunch of "warning: parenthesize argument(s) for future version"
messages; now there aren't.
Diffstat (limited to 'spec/unit/network/http')
| -rw-r--r-- | spec/unit/network/http/compression_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/network/http/compression_spec.rb b/spec/unit/network/http/compression_spec.rb index 9b9a2a516..63fd9e715 100644 --- a/spec/unit/network/http/compression_spec.rb +++ b/spec/unit/network/http/compression_spec.rb @@ -32,7 +32,7 @@ describe "http compression" do it "should yield an identity uncompressor" do response = stub 'response' @uncompressor.uncompress(response) { |u| - u.should be_instance_of Puppet::Network::HTTP::Compression::IdentityAdapter + u.should be_instance_of(Puppet::Network::HTTP::Compression::IdentityAdapter) } end end @@ -120,14 +120,14 @@ describe "http compression" do it "should yield an identity uncompressor with no content-encoding" do @uncompressor.uncompress(@response) { |u| - u.should be_instance_of Puppet::Network::HTTP::Compression::IdentityAdapter + u.should be_instance_of(Puppet::Network::HTTP::Compression::IdentityAdapter) } end it "should yield an identity uncompressor with 'identity' content-encoding" do @response.stubs(:[]).with('content-encoding').returns 'identity' @uncompressor.uncompress(@response) { |u| - u.should be_instance_of Puppet::Network::HTTP::Compression::IdentityAdapter + u.should be_instance_of(Puppet::Network::HTTP::Compression::IdentityAdapter) } end @@ -135,7 +135,7 @@ describe "http compression" do it "should yield a Zlib uncompressor with '#{c}' content-encoding" do @response.stubs(:[]).with('content-encoding').returns c @uncompressor.uncompress(@response) { |u| - u.should be_instance_of Puppet::Network::HTTP::Compression::Active::ZlibAdapter + u.should be_instance_of(Puppet::Network::HTTP::Compression::Active::ZlibAdapter) } end end @@ -172,7 +172,7 @@ describe "http compression" do end it "should try a 'regular' inflater on Zlib::DataError" do - @inflater.expects(:inflate).raises(Zlib::DataError.new "not a zlib stream") + @inflater.expects(:inflate).raises(Zlib::DataError.new("not a zlib stream")) inflater = stub_everything 'inflater2' inflater.expects(:inflate).with("chunk").returns("uncompressed") Zlib::Inflate.expects(:new).with().returns(inflater) @@ -180,7 +180,7 @@ describe "http compression" do end it "should raise the error the second time" do - @inflater.expects(:inflate).raises(Zlib::DataError.new "not a zlib stream") + @inflater.expects(:inflate).raises(Zlib::DataError.new("not a zlib stream")) Zlib::Inflate.expects(:new).with().returns(@inflater) lambda { @adapter.uncompress("chunk") }.should raise_error end |
