Skip to content

Commit

Permalink
Replace "fallbacks" to "falls back"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensho committed Dec 11, 2017
1 parent 71eab72 commit 7daf2be
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions spec/amq/uri_parsing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
let(:uri) { "amqp://" }

# Note that according to the ABNF, the host component may not be absent, but it may be zero-length.
it "fallbacks to default nil host" do
it "falls back to default nil host" do
expect(subject[:host]).to be_nil
end
end
Expand Down Expand Up @@ -69,15 +69,15 @@
context "schema amqp" do
let(:uri) { "amqp://rabbitmq" }

it "fallbacks to 5672 port" do
it "falls back to 5672 port" do
expect(subject[:port]).to eq(5672)
end
end

context "schema amqps" do
let(:uri) { "amqps://rabbitmq" }

it "fallbacks to 5671 port" do
it "falls back to 5671 port" do
expect(subject[:port]).to eq(5671)
end
end
Expand All @@ -97,15 +97,15 @@
context "only username present" do
let(:uri) { "amqp://alpha@rabbitmq" }

it "parses user and fallbacks to nil pass" do
it "parses user and falls back to nil pass" do
expect(subject[:user]).to eq("alpha")
expect(subject[:pass]).to be_nil
end

context "with ':'" do
let(:uri) { "amqp://alpha:@rabbitmq" }

it "parses user and fallbacks to "" (empty) pass" do
it "parses user and falls back to "" (empty) pass" do
expect(subject[:user]).to eq("alpha")
expect(subject[:pass]).to eq("")
end
Expand All @@ -115,7 +115,7 @@
context "only password present" do
let(:uri) { "amqp://:beta@rabbitmq" }

it "parses pass and fallbacks to "" (empty) user" do
it "parses pass and falls back to "" (empty) user" do
expect(subject[:user]).to eq("")
expect(subject[:pass]).to eq("beta")
end
Expand All @@ -124,15 +124,15 @@
context "both absent" do
let(:uri) { "amqp://rabbitmq" }

it "fallbacks to nil user and pass" do
it "falls back to nil user and pass" do
expect(subject[:user]).to be_nil
expect(subject[:pass]).to be_nil
end

context "with ':'" do
let(:uri) { "amqp://:@rabbitmq" }

it "fallbacks to "" (empty) user and "" (empty) pass" do
it "falls back to "" (empty) user and "" (empty) pass" do
expect(subject[:user]).to eq("")
expect(subject[:pass]).to eq("")
end
Expand Down Expand Up @@ -201,7 +201,7 @@
context "absent" do
let(:uri) { "amqp://rabbitmq" }

it "fallbacks to default nil vhost" do
it "falls back to default nil vhost" do
expect(subject[:vhost]).to be_nil
end
end
Expand All @@ -222,7 +222,7 @@
context "absent" do
let(:uri) { "amqp://rabbitmq" }

it "fallbacks to default client connection parameters" do
it "falls back to default client connection parameters" do
expect(subject[:heartbeat]).to be_nil
expect(subject[:connection_timeout]).to be_nil
expect(subject[:channel_max]).to be_nil
Expand Down Expand Up @@ -261,7 +261,7 @@
context "absent" do
let(:uri) { "amqps://rabbitmq" }

it "fallbacks to default tls options" do
it "falls back to default tls options" do
expect(subject[:verify]).to be_falsey
expect(subject[:fail_if_no_peer_cert]).to be_falsey
expect(subject[:cacertfile]).to be_nil
Expand Down

0 comments on commit 7daf2be

Please sign in to comment.