spec/integration/group_rollout_spec.rb in detour-0.0.1 vs spec/integration/group_rollout_spec.rb in detour-0.0.2
- old
+ new
@@ -5,10 +5,10 @@
let(:feature) { Detour::Feature.create(name: "foo") }
let!(:flag) { feature.group_flags.create(flaggable_type: "User", group_name: "foo_users") }
describe "creating a group rollout" do
before do
- Detour::Feature.define_user_group "foo_users" do |user|
+ Detour.config.define_user_group "foo_users" do |user|
user.name == "foo"
end
end
it "sets the feature on the user" do