Sha256: eb1f0f7abccd1d9c652add9d2fc472e5df2596be3422036fd22e43f7ae97bbaf

Contents?: true

Size: 674 Bytes

Versions: 17

Compression:

Stored size: 674 Bytes

Contents

require 'test_helper'

module Eac
  class CommonFormHelperTest < ActionView::TestCase
    include Eac::CommonFormHelper

    setup do
      reset_test_database
    end

    test 'test common form' do
      common_form(User.new) do |f|
        f.text_field :name
        f.email_field :email
        f.password_field :password
        f.searchable_association_field :job, url: search_jobs_path
      end
    end

    test 'fields for' do
      common_form(Job.new) do |f|
        f.text_field :name
        f.fields_for :users do |nf|
          nf.text_field :name
          nf.email_field :email
          nf.password_field :password
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
eac_rails_utils-0.8.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.7.1 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.7.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.6.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.5.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.4.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.3.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.2.2 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.2.1 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.2.0 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.15 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.14 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.13 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.12 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.11 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.1.10 test/lib/eac/common_form_helper_test.rb
eac_rails_utils-0.0.1 test/lib/eac/common_form_helper_test.rb