Sha256: f8cdccad041cd5eda06be007a18db375e5c81db75f1c8123869146177a938f45

Contents?: true

Size: 554 Bytes

Versions: 5

Compression:

Stored size: 554 Bytes

Contents

require "test_helper"

describe "Order: just include ActWithBooleans and :booleans" do
  let(:order) { Order.new }

  def setup
    reset_order
    Order.add_to_booleans
  end

  it "respond to ActWithBooleans API" do
    assert Order.respond_to?(:add_to_booleans)
    assert Order.respond_to?(:act_with_booleans)
    assert Order.respond_to?(:booleans_mask)
  end

  it "checks mask et all; no parameters" do
    assert_equal 0, order.booleans_mask
    refute order.booleans_any?
    assert order.booleans_all?
    assert order.booleans_none?
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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