Sha256: ac195c15aaf3ad92db5325b180aa73e44d664bbc11d1dd8ac37187836c4c4757
Contents?: true
Size: 642 Bytes
Versions: 12
Compression:
Stored size: 642 Bytes
Contents
require File.join(File.dirname(__FILE__), '../../test_helper') silence_warnings do class Block < Struct.new(:id, :name) end end class FormBuilderTest < ActionView::TestCase tests ActionView::Helpers::FormHelper def setup @block = Block.new end def teardown end test "cms_text_area with a fairly weak and semi-pointless test" do self.expects(:block_path).returns("/") self.expects(:protect_against_forgery?).returns(false).at_least_once self.expects(:render).at_least_once self.expects(:next_tabindex).returns({}) form_for (@block) do |f| f.cms_text_area(:name) end end end
Version data entries
12 entries across 12 versions & 5 rubygems