profile_image_block_test.rb
509 Bytes
require_relative "../test_helper"
class ProfileImageBlockTest < ActiveSupport::TestCase
should 'provide description' do
assert_not_equal Block.description, ProfileImageBlock.description
end
should 'display profile image' do
block = ProfileImageBlock.new
self.expects(:render).with(:file => 'blocks/profile_image', :locals => { :block => block, :show_name => false})
instance_eval(& block.content)
end
should 'be editable' do
assert ProfileImageBlock.new.editable?
end
end