Sha256: dd17ed41c5bcf4657a3b7bc3c3dbc275df3e466cf79255e7cf2c9fe33c494c2b

Contents?: true

Size: 225 Bytes

Versions: 10

Compression:

Stored size: 225 Bytes

Contents

RSpec.describe Flipper::Expressions::Random do
  describe "#call" do
    it "returns random number based on max" do
      100.times do
        expect(described_class.call(10)).to be_between(0, 10)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/expressions/random_spec.rb
flipper-1.3.1 spec/flipper/expressions/random_spec.rb
flipper-1.3.0 spec/flipper/expressions/random_spec.rb
flipper-1.3.0.pre spec/flipper/expressions/random_spec.rb
flipper-1.2.2 spec/flipper/expressions/random_spec.rb
flipper-1.2.1 spec/flipper/expressions/random_spec.rb
flipper-1.2.0 spec/flipper/expressions/random_spec.rb
flipper-1.1.2 spec/flipper/expressions/random_spec.rb
flipper-1.1.1 spec/flipper/expressions/random_spec.rb
flipper-1.1.0 spec/flipper/expressions/random_spec.rb