Sha256: 97d11c138a64b3ddc0fcc4c37b60048dd2172c2e54342e8bbaa47d7832a58be9
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
require "spec_helper" describe ActiveRecord::Rollout::PercentageFlag do subject { ActiveRecord::Rollout::PercentageFlag.new(feature_id: 1, flaggable_type: "User") } it { should be_a ActiveRecord::Rollout::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 |
---|---|
active_record_rollout-0.0.1 | spec/lib/active_record/rollout/percentage_flag_spec.rb |