Skip to content

Commit d95d295

Browse files
committed
Fix spec titles.
1 parent 6a63854 commit d95d295

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

spec/network/ssl/mixin_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
let(:context) { double(OpenSSL::SSL::SSLContext) }
5050

5151
context "and it's 1" do
52-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1" do
52+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1" do
5353
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
5454
expect(context).to receive(:ssl_version=).with(:TLSv1)
5555
allow(context).to receive(:verify_mode=).with(0)
@@ -59,7 +59,7 @@
5959
end
6060

6161
context "and it's 1.1" do
62-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_1" do
62+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_1" do
6363
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
6464
expect(context).to receive(:ssl_version=).with(:TLSv1_1)
6565
allow(context).to receive(:verify_mode=).with(0)
@@ -69,7 +69,7 @@
6969
end
7070

7171
context "and it's 1_2" do
72-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
72+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
7373
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
7474
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
7575
allow(context).to receive(:verify_mode=).with(0)

spec/network/ssl_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
let(:context) { double(OpenSSL::SSL::SSLContext) }
113113

114114
context "and it's 1" do
115-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1" do
115+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1" do
116116
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
117117
expect(context).to receive(:ssl_version=).with(:TLSv1)
118118
allow(context).to receive(:verify_mode=).with(0)
@@ -122,7 +122,7 @@
122122
end
123123

124124
context "and it's 1.1" do
125-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_1" do
125+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_1" do
126126
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
127127
expect(context).to receive(:ssl_version=).with(:TLSv1_1)
128128
allow(context).to receive(:verify_mode=).with(0)
@@ -132,7 +132,7 @@
132132
end
133133

134134
context "and it's 1_2" do
135-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
135+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
136136
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
137137
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
138138
allow(context).to receive(:verify_mode=).with(0)

spec/network/tls/mixin_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
context "when no version: keyword argument is given" do
4949
let(:context) { double(OpenSSL::SSL::SSLContext) }
5050

51-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
51+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
5252
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
5353
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
5454
allow(context).to receive(:verify_mode=).with(0)
@@ -61,7 +61,7 @@
6161
let(:context) { double(OpenSSL::SSL::SSLContext) }
6262

6363
context "and it's 1" do
64-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1" do
64+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1" do
6565
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
6666
expect(context).to receive(:ssl_version=).with(:TLSv1)
6767
allow(context).to receive(:verify_mode=).with(0)
@@ -71,7 +71,7 @@
7171
end
7272

7373
context "and it's 1.1" do
74-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_1" do
74+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_1" do
7575
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
7676
expect(context).to receive(:ssl_version=).with(:TLSv1_1)
7777
allow(context).to receive(:verify_mode=).with(0)
@@ -81,7 +81,7 @@
8181
end
8282

8383
context "and it's 1_2" do
84-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
84+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
8585
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
8686
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
8787
allow(context).to receive(:verify_mode=).with(0)

spec/network/tls_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
let(:context) { double(OpenSSL::SSL::SSLContext) }
7979

80-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
80+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
8181
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
8282
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
8383
allow(context).to receive(:verify_mode=).with(0)
@@ -92,7 +92,7 @@
9292
let(:context) { double(OpenSSL::SSL::SSLContext) }
9393

9494
context "and it's 1" do
95-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1" do
95+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1" do
9696
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
9797
expect(context).to receive(:ssl_version=).with(:TLSv1)
9898
allow(context).to receive(:verify_mode=).with(0)
@@ -102,7 +102,7 @@
102102
end
103103

104104
context "and it's 1.1" do
105-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_1" do
105+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_1" do
106106
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
107107
expect(context).to receive(:ssl_version=).with(:TLSv1_1)
108108
allow(context).to receive(:verify_mode=).with(0)
@@ -112,7 +112,7 @@
112112
end
113113

114114
context "and it's 1_2" do
115-
it "must call OpenSSL::SSL::SSLContext#ssl_version with :TLSv1_2" do
115+
it "must call OpenSSL::SSL::SSLContext#ssl_version= with :TLSv1_2" do
116116
expect(OpenSSL::SSL::SSLContext).to receive(:new).and_return(context)
117117
expect(context).to receive(:ssl_version=).with(:TLSv1_2)
118118
allow(context).to receive(:verify_mode=).with(0)

0 commit comments

Comments
 (0)