cirandas.net

ref: master

test/unit/profile_image_block_test.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
require_relative "../test_helper"
require 'boxes_helper'

class ProfileImageBlockTest < ActiveSupport::TestCase
  include BoxesHelper

  should 'provide description' do
    assert_not_equal Block.description, ProfileImageBlock.description
  end

  should 'display profile image' do
    block = ProfileImageBlock.new

    self.expects(:render).with(template: 'blocks/profile_image', locals: { block: block })
    render_block_content(block)
  end

  should 'be editable' do
    assert ProfileImageBlock.new.editable?
  end
end