Sha256: d335aab22b2782a4ce43d376dd98055275adeb9f01f541f946cd07766d234055
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
require "test_helper" describe "Internal One Flag" do let(:bool) { :blocked } let(:admin) { Order.act_with_booleans } let(:order) { Order.new } def setup reset_order Order.add_to_booleans bool end it "test order.act_with_" do refute_nil admin assert_equal admin, order.class.act_with_booleans assert_equal admin, order.act_with_booleans assert_equal admin, Order.act_with_booleans end it "checks definition of methods" do msg = "method '#{bool}' not defined" assert order.respond_to?(bool.to_s), msg assert order.respond_to?("#{bool}?"), msg assert order.respond_to?("#{bool}="), msg end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
act_with_booleans-0.0.4 | test/coding_one_test.rb |
act_with_booleans-0.0.3 | test/coding_one_test.rb |