ref: master
test/unit/acts_as_having_boxes_test.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
require_relative "../test_helper" class ActsAsHavingBoxesTest < ActiveSupport::TestCase should 'be able to find blocks by id' do env = fast_create(Environment, :name => 'An environment without blocks') env.boxes << Box.new block = Block.new env.boxes.first.blocks << block assert_equal block, env.blocks.find(block.id) end end |