aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/net/http/http/shared/version_1_2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/net/http/http/shared/version_1_2.rb')
-rw-r--r--spec/ruby/library/net/http/http/shared/version_1_2.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/library/net/http/http/shared/version_1_2.rb b/spec/ruby/library/net/http/http/shared/version_1_2.rb
new file mode 100644
index 0000000000..b044182c60
--- /dev/null
+++ b/spec/ruby/library/net/http/http/shared/version_1_2.rb
@@ -0,0 +1,6 @@
+describe :net_http_version_1_2_p, shared: true do
+ it "returns the state of net/http 1.2 features" do
+ Net::HTTP.version_1_2
+ Net::HTTP.send(@method).should be_true
+ end
+end