Sha256: a0f259c6b2e89a016a509e1f0cc6ea7002032e703eee37c34d6f5eec5ec146c4
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
require "spec_helper" describe Detour::PercentageFlag do subject { Detour::PercentageFlag.new(feature_id: 1, flaggable_type: "User") } it { should be_a Detour::Flag } it { should validate_numericality_of(:percentage).is_greater_than(0).is_less_than_or_equal_to(100) } it { should allow_mass_assignment_of :percentage } it { should validate_uniqueness_of :feature_id } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
detour-0.0.1 | spec/lib/active_record/rollout/percentage_flag_spec.rb |