Sha256: db706f1000024def8975547142eebfa897fe14ae5394ea9572b6551819640c45
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 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_flags" 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 for flag" 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.1 | test/coding_one_test.rb |
act_with_flags-3.1.0 | test/coding_one_test.rb |
act_with_flags-3.0.1 | test/coding_one_test.rb |