Sha256: 678824501a7f68e1995dae5f51b1787b2c3fd01cf980f52b1e5c53b9960c47e8
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
require "spec_helper" describe "group rollouts" do let(:user) { User.create(name: "foo") } 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.config.define_user_group "foo_users" do |user| user.name == "foo" end end it "sets the feature on the user" do feature.match_groups?(user).should be_true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.3 | spec/integration/group_rollout_spec.rb |
detour-0.0.2 | spec/integration/group_rollout_spec.rb |