spec/rollout_spec.rb in rollout-2.4.1 vs spec/rollout_spec.rb in rollout-2.4.2

- old
+ new

@@ -644,9 +644,20 @@ expect(@rollout.get(:chat).data).to include('description' => 'foo') @rollout.clear_feature_data(:chat) expect(@rollout.get(:chat).data).to eq({}) end end + + describe 'Check if feature exists' do + it 'it should return true if the feature is exist' do + @rollout.activate_percentage(:chat, 1) + expect(@rollout.exists?(:chat)).to be true + end + + it 'it should return false if the feature is not exist' do + expect(@rollout.exists?(:chat)).to be false + end + end end describe "Rollout::Feature" do describe "#add_user" do it "ids a user using id_user_by" do