Sha256: 65c99984b19ce8703b823121cc8bcb0136cae9286949927f5afe90819d59fe38
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
require "spec_helper" describe "flag rollouts" do let(:user) { User.create } let(:feature) { ActiveRecord::Rollout::Feature.create(name: "foo") } describe "creating a flag rollout" do before do ActiveRecord::Rollout::Feature.add_record_to_feature user, feature.name end it "sets the feature on the user" do feature.match_id?(user).should be_true end end describe "removing a flag rollout" do before do ActiveRecord::Rollout::Feature.add_record_to_feature user, feature.name ActiveRecord::Rollout::Feature.remove_record_from_feature user, feature.name end it "removes the feature from the user" do feature.match_id?(user).should be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_rollout-0.0.1 | spec/integration/flag_rollout_spec.rb |