ref: master
test/unit/profile_info_block_test.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
require_relative "../test_helper" class ProfileInfoBlockTest < ActiveSupport::TestCase def setup @profile = create_user('mytestuser').person @block = ProfileInfoBlock.new @profile.boxes.first.blocks << @block @block.save! end attr_reader :block, :profile should 'provide description' do assert_not_equal Block.description, ProfileInfoBlock.description end include BoxesHelper should 'display profile information' do self.expects(:render).with(template: 'blocks/profile_info', locals: { block: block }) render_block_content(block) end end |