Sha256: b32fd46e994f4080e14a28c59d21cf71ed889fa9520f36d05119afa2e9aba05f
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require "test_helper" describe "Legacy Flag" do let(:order) { Order.create } 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-3.1.1 | test/legacy_test.rb |
act_with_flags-3.1.0 | test/legacy_test.rb |
act_with_flags-3.0.1 | test/legacy_test.rb |