parent
d916622b07
commit
3f9beb2b92
@ -1,51 +0,0 @@
|
||||
From df93a5a78dd555e933396a5fc7f74e81e97d7cb5 Mon Sep 17 00:00:00 2001
|
||||
From: Jun Aruga <jaruga@redhat.com>
|
||||
Date: Mon, 6 Feb 2017 21:25:10 +0100
|
||||
Subject: [PATCH] RSpec 3 compatibility.
|
||||
|
||||
---
|
||||
spec/protection_spec.rb | 6 +++---
|
||||
spec/spec_helper.rb | 2 +-
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/spec/protection_spec.rb b/spec/protection_spec.rb
|
||||
index 083670c..c15a544 100755
|
||||
--- a/spec/protection_spec.rb
|
||||
+++ b/spec/protection_spec.rb
|
||||
@@ -68,17 +68,17 @@ describe Rack::Protection do
|
||||
describe "#html?" do
|
||||
context "given an appropriate content-type header" do
|
||||
subject { Rack::Protection::Base.new(nil).html? 'content-type' => "text/html" }
|
||||
- it { should be_true }
|
||||
+ it { should be_truthy }
|
||||
end
|
||||
|
||||
context "given an inappropriate content-type header" do
|
||||
subject { Rack::Protection::Base.new(nil).html? 'content-type' => "image/gif" }
|
||||
- it { should be_false }
|
||||
+ it { should be_falsey }
|
||||
end
|
||||
|
||||
context "given no content-type header" do
|
||||
subject { Rack::Protection::Base.new(nil).html?({}) }
|
||||
- it { should be_false }
|
||||
+ it { should be_falsey }
|
||||
end
|
||||
end
|
||||
|
||||
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
|
||||
index 6a3a8f8..5caccd8 100644
|
||||
--- a/spec/spec_helper.rb
|
||||
+++ b/spec/spec_helper.rb
|
||||
@@ -93,7 +93,7 @@ module NotImplementedAsPending
|
||||
end
|
||||
|
||||
RSpec.configure do |config|
|
||||
- config.expect_with :rspec, :stdlib
|
||||
+ config.expect_with :rspec
|
||||
config.include Rack::Test::Methods
|
||||
config.include TestHelpers
|
||||
end
|
||||
--
|
||||
2.7.4
|
||||
|
@ -1 +1,2 @@
|
||||
SHA512 (rack-protection-1.5.3.gem) = 9f94f9f25197c3f8227f5c9c9fd2e896e35bfc08d4a20f4dded9c42772f348d16dceda6916429833b498b29c4dbba4dbb31b1a3cf90de597fb6df2de145d655a
|
||||
SHA512 (rack-protection-2.0.0-tests.tgz) = d369c878614ae8710c752227303b21629714b27ab39ba52e49ae2ae79661645f00ff3843dd07d43d4296e2c11d3009005dda9ecd5dc1ca6e51206c190127e8eb
|
||||
SHA512 (rack-protection-2.0.0.gem) = cce6a8a64c502e4cfec47ae3d76e71aef42b1eec5aa4802a6c443fcb7a8971a99ad9a5b34fea7ae878630faba10d4f5bde4d9a3eb66f63600fcaf02d9ecc0c2e
|
||||
|
Loading…
Reference in new issue