Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
russointroitoa committed Apr 21, 2024
1 parent 2348e48 commit 592a494
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/modules/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@
describe "#pluck_script" do
context "when Redis server version is" do
it ">= 6.2.0, selects the corresponding pluck script" do
allow_any_instance_of(described_class).to receive(:server_version)
allow_any_instance_of(described_class)
.to receive(:server_version)
.and_return("6.2.0")
expect(redis_service.send(:pluck_script)).to eq(
described_class::PLUCK_SCRIPT_GTE_6_2_0
)
end

it "< 6.2.0, selects the corresponding pluck script" do
allow_any_instance_of(described_class).to receive(:server_version)
allow_any_instance_of(described_class)
.to receive(:server_version)
.and_return("6.0.0")
expect(redis_service.send(:pluck_script)).to eq(
described_class::PLUCK_SCRIPT_LT_6_2_0
Expand Down

0 comments on commit 592a494

Please sign in to comment.