Sha256: 73bfff3e40399d9bfd50dad326295fccf5531bd086c28f821761b51df5070459

Contents?: true

Size: 326 Bytes

Versions: 8

Compression:

Stored size: 326 Bytes

Contents

require "test_helper"

describe "Testing reset" do
  let(:order) { Order.new }

  def setup
    reset_order
    Order.add_to_flags :a
  end

  it "reset hard" do
    empty = {}
    refute_equal empty, Order.add_to_flags.locations

    Order.act_with_flags&.reset
    assert_equal empty, Order.add_to_flags.locations
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
act_with_flags-3.1.9 test/coding_reset_test.rb
act_with_flags-3.1.6 test/coding_reset_test.rb
act_with_flags-3.1.5 test/coding_reset_test.rb
act_with_flags-3.1.3 test/coding_reset_test.rb
act_with_flags-3.1.2 test/coding_reset_test.rb
act_with_flags-3.1.1 test/coding_reset_test.rb
act_with_flags-3.1.0 test/coding_reset_test.rb
act_with_flags-3.0.1 test/coding_reset_test.rb