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

Version Path
browsercms-3.1.5 test/unit/helpers/form_builder_test.rb
browsercms-3.1.4 test/unit/helpers/form_builder_test.rb
browsercms-3.1.3 test/unit/helpers/form_builder_test.rb
bf4-browsercms-3.1.0 test/unit/helpers/form_builder_test.rb
drujensen-browsercms-3.2.0 test/unit/helpers/form_builder_test.rb
browsercmsi-3.1.2 test/unit/helpers/form_builder_test.rb
browsercms-3.1.2 test/unit/helpers/form_builder_test.rb
browsercms-3.1.1 test/unit/helpers/form_builder_test.rb
browsercmsi-3.1.1 test/unit/helpers/form_builder_test.rb
browsercmsi-3.1.0 test/unit/helpers/form_builder_test.rb
browsercms-3.1.0 test/unit/helpers/form_builder_test.rb
we5-browsercms-3.1.0 test/unit/helpers/form_builder_test.rb