spec/flipper/adapters/rollout_spec.rb in flipper-rollout-1.0.0 vs spec/flipper/adapters/rollout_spec.rb in flipper-rollout-1.1.0
- old
+ new
@@ -31,10 +31,11 @@
feature = source_flipper[:chat]
expected = {
boolean: nil,
groups: Set.new(["admins"]),
actors: Set.new(["1"]),
+ expression: nil,
percentage_of_actors: 20.0,
percentage_of_time: nil,
}
expect(source_adapter.get(feature)).to eq(expected)
end
@@ -44,10 +45,11 @@
feature = source_flipper[:chat]
expected = {
boolean: true,
groups: Set.new,
actors: Set.new,
+ expression: nil,
percentage_of_actors: nil,
percentage_of_time: nil,
}
expect(source_adapter.get(feature)).to eq(expected)
end
@@ -59,10 +61,11 @@
feature = source_flipper[:chat]
expected = {
boolean: true,
groups: Set.new,
actors: Set.new,
+ expression: nil,
percentage_of_actors: nil,
percentage_of_time: nil,
}
expect(source_adapter.get(feature)).to eq(expected)
end
@@ -113,10 +116,10 @@
feature = destination_flipper[:issues_next]
expect(feature.boolean_value).to eq(false)
expect(feature.actors_value).to eq(Set.new)
expect(feature.groups_value).to eq(Set.new)
- expect(feature.percentage_of_actors_value).to be(25)
+ expect(feature.percentage_of_actors_value).to be(25.0)
feature = destination_flipper[:verbose_logging]
expect(feature.boolean_value).to eq(false)
expect(feature.actors_value).to eq(Set.new)
expect(feature.groups_value).to eq(Set.new)