spec/rollout_spec.rb in rollout-2.4.5 vs spec/rollout_spec.rb in rollout-2.4.6
- old
+ new
@@ -1,10 +1,9 @@
require "spec_helper"
RSpec.describe "Rollout" do
before do
- @redis = Redis.new
- @rollout = Rollout.new(@redis)
+ @rollout = Rollout.new(Redis.current)
end
describe "when a group is activated" do
before do
@rollout.define_group(:fivesonly) { |user| user.id == 5 }