Sha256: 42f60f2a0c61adb1f5a4f1fa885d66ac62708d76d1baa7147791b1e2e701079b

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

require_relative "./spec_helper"

prepare do
  Flag.flush
end

scope "percentage" do
  test "only half" do
    Flag(:test).on!("50%")

    assert Flag(:test).on?(1) == false
    assert Flag(:test).on?(2) == true
    assert Flag(:test).on?("49%") == false
    assert Flag(:test).on?("50%") == true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flag-1.0.0 test/percentage_test.rb