Permalink
Browse files

Minor: formatting.

  • Loading branch information...
1 parent 03e201f commit 279b141947a0e89131e83284228c82209e6057e9 @jnunemaker committed Feb 18, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 spec/flipper-ui/middleware_spec.rb
@@ -28,11 +28,6 @@ def app
end
end
- def gate_value(feature_name, gate_key)
- values = flipper.adapter.get(flipper[feature_name])
- values[gate_key]
- end
-
describe "GET /flipper" do
before do
flipper[:stats].enable
@@ -364,4 +359,10 @@ def gate_value(feature_name, gate_key)
}.to raise_error(Flipper::UI::RequestMethodNotSupported)
end
end
+
+ # Gets the adapter value for a given feature name and gate key.
+ def gate_value(feature_name, gate_key)
+ values = flipper.adapter.get(flipper[feature_name])
+ values[gate_key]
+ end
end

0 comments on commit 279b141

Please sign in to comment.