spec/rollout_spec.rb in rollout-2.4.2 vs spec/rollout_spec.rb in rollout-2.4.3
- old
+ new
@@ -224,9 +224,19 @@
inactive_users.each { |user| expect(@rollout).not_to be_active(:chat, user) }
end
end
end
+
+ describe 'set a group of users' do
+ it 'should replace the users with the given array' do
+ users = %w(1 2 3 4)
+ @rollout.activate_users(:chat, %w(10 20 30))
+ @rollout.set_users(:chat, users)
+ expect(@rollout.get(:chat).users).to eq(users)
+ end
+ end
+
describe "activating a feature globally" do
before do
@rollout.activate(:chat)
end