Skip to content

Commit

Permalink
Add rollout spec for parity with Scala implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
mervync committed May 4, 2017
1 parent 4234b31 commit a9ff249
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/models/feature_spec.rb
Expand Up @@ -111,6 +111,13 @@
end
end

it 'returns true for certain accounts when deployment percentage is 50' do
feature.deployment_percentage = 50
{ 58 => false, 61 => true, 112 => false, 116 => true }.each do |id, expected|
expect(feature.enabled_for?(double('Thing', id: id))).to be(expected)
end
end

it 'returns true for about deployment percentage percent of things' do
feature.deployment_percentage = 37
yes = 0
Expand Down

0 comments on commit a9ff249

Please sign in to comment.