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