Sha256: bb725ed76dc17b90d4018a1b700e8957dd775d843905d0ac3c25fcf824b45995
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
require "spec_helper" describe "group rollouts" do let(:user) { User.create(name: "foo") } let(:feature) { ActiveRecord::Rollout::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 ActiveRecord::Rollout::Feature.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_rollout-0.0.1 | spec/integration/group_rollout_spec.rb |