Sha256: 1d50898aeab82ef1e3c4326920974ce82ecb1bf43d0ddb117f08b61711c8c370
Contents?: true
Size: 458 Bytes
Versions: 8
Compression:
Stored size: 458 Bytes
Contents
require "test_helper" # There is an interference with Class B in another test: call it BB! class BB < Order add_to_flags x: 1 end describe "mask2d" do let(:admin) { BB.act_with_flags } def setup reset_order Order.add_to_flags y: 2 end it "is a non splitted mask" do mask = admin.mask2d(:x) assert_equal 1, mask.length end it "is a splitted mask" do mask = admin.mask2d(:x, :y) assert_equal 2, mask.length end end
Version data entries
8 entries across 8 versions & 1 rubygems