Skip to content

Commit

Permalink
Another type spot
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Mar 20, 2023
1 parent 2a2bbdc commit aa4a4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/flipper/types/group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def admin?
context = Flipper::FeatureCheckContext.new(
feature_name: :my_feature,
values: Flipper::GateValues.new({}),
actors: [Flipper::Types::Actor.new(Flipper::Actor.new(1))]
actors: [Flipper::Types::Actor.new(Flipper::Actor.new('1'))]
)
group = Flipper.register(:group_with_context) { |actor| actor }
yielded_actor = group.match?(admin_actor, context)
Expand All @@ -101,7 +101,7 @@ def admin?
context = Flipper::FeatureCheckContext.new(
feature_name: :my_feature,
values: Flipper::GateValues.new({}),
actors: [Flipper::Types::Actor.new(Flipper::Actor.new(1))]
actors: [Flipper::Types::Actor.new(Flipper::Actor.new('1'))]
)
group = Flipper.register(:group_with_context) { |actor, context| [actor, context] }
yielded_actor, yielded_context = group.match?(admin_actor, context)
Expand Down

0 comments on commit aa4a4d5

Please sign in to comment.