Sha256: 6c772c1439e881b3bf11b3972b1885d3e64965f86778e52a4cd251043c7e1cef
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 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.defined_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 user.features.should include feature end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.13 | spec/integration/group_rollout_spec.rb |
detour-0.0.12 | spec/integration/group_rollout_spec.rb |