Sha256: f45f9d2b6168f33cbd1b335d84066f8142ad9b963fddb3487016c552d5866e3f

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

require "test_helper"

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

  def setup
    reset_order
    Order.add_to_booleans :a
  end

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

    Order.act_with_booleans&.reset
    assert_equal empty, Order.act_with_booleans.locations
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
act_with_booleans-0.0.5 test/coding_reset_test.rb
act_with_booleans-0.0.4 test/coding_reset_test.rb
act_with_booleans-0.0.3 test/coding_reset_test.rb
act_with_booleans-0.0.2 test/coding_reset_test.rb
act_with_booleans-0.0.1 test/coding_reset_test.rb