Sha256: 24e22ba98209b1d290bfa38667d0509e9c9ed972e4e444f36304951048680362
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
# rubocop:disable all require 'test_helper' describe 'Legacy Flag' do let(:order) { Order.new } def setup reset_order Order.add_to_flags a: 1, b: 7, c: 3 end it 'set true' do test3 true, true, true end it 'set false' do test3 false, false, false end it 'set mixture' do test3 false, true, false end it 'set mixture #2' do test3 true, false, true end private def test3(a, b, c) order.a = a order.b = b order.c = c assert_equal a, order.a assert_equal b, order.b assert_equal c, order.c end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
act_with_flags-0.0.7 | test/legacy_test.rb |
act_with_flags-0.0.6 | test/legacy_test.rb |
act_with_flags-0.0.4 | test/legacy_test.rb |