Sha256: a8c13a088523e1aac76087aa9d7af3280511655bb26025f4d64c6588784e019d
Contents?: true
Size: 349 Bytes
Versions: 1
Compression:
Stored size: 349 Bytes
Contents
require_relative "./spec_helper" prepare do Flag.flush end scope "users" do test "enabled only for a user" do Flag(:test).on!(1) assert Flag(:test).on?(1) == true assert Flag(:test).on?(2) == false end test "using any kind of id" do Flag(:test).on!("ImARandomUUID") assert Flag(:test).on?("ImARandomUUID") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flag-1.0.0 | test/users_test.rb |