Permalink
Browse files

Reordered the shared specs a bit.

  • Loading branch information...
1 parent 72b52ff commit 98c4a7151b83e30bda60a2fb029b30d328a2b75e @jnunemaker committed Feb 20, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/flipper/spec/shared_adapter_specs.rb
@@ -177,7 +177,7 @@
subject.features.should eq(Set.new)
end
- it "clears all the values for the feature on remove" do
+ it "clears all the gate values for the feature on remove" do
actor_22 = actor_class.new('22')
subject.enable(feature, boolean_gate, flipper.boolean).should be_true
subject.enable(feature, group_gate, flipper.group(:admins)).should be_true
@@ -196,11 +196,7 @@
})
end
- it "does not complain removing a feature that is already removed" do
- subject.remove(flipper[:stats]).should be_true
- end
-
- it "can clear all the values for a feature" do
+ it "can clear all the gate values for a feature" do
actor_22 = actor_class.new('22')
subject.enable(feature, boolean_gate, flipper.boolean).should be_true
subject.enable(feature, group_gate, flipper.group(:admins)).should be_true
@@ -218,4 +214,8 @@
:percentage_of_random => nil,
})
end
+
+ it "does not complain clearing a feature that does not exist in adapter" do
+ subject.clear(flipper[:stats]).should be_true
+ end
end

0 comments on commit 98c4a71

Please sign in to comment.