Sha256: 10904f8b664755031e8d4dbecaf951760e77c40e16daadec15a974d531a5c32a
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
require 'rubygems' require 'test/unit' require 'active_model' require 'action_controller' require 'action_view/test_case' begin require 'ruby-debug' rescue LoadError end $:.unshift File.join(File.dirname(__FILE__), '..', 'lib', 'simple_form') require 'simple_form' Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f } I18n.default_locale = :en $:.unshift "#{File.dirname(__FILE__)}/support/country_select/lib" require 'country_select' class SimpleForm::FormBuilder attr_accessor :attribute_name, :column, :reflection, :input_type, :options end class ActionView::TestCase include MiscHelpers tests SimpleForm::ActionViewExtensions::FormHelper setup :set_controller setup :set_response setup :setup_new_user def set_controller @controller = MockController.new end def set_response @response = MockResponse.new(self) end def setup_new_user(options={}) @user = User.new({ :id => 1, :name => 'New in Simple Form!', :description => 'Hello!', :created_at => Time.now }.merge(options)) end def protect_against_forgery? false end def user_path(*args) '/users' end alias :users_path :user_path alias :super_user_path :user_path end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_form-1.1.2 | test/test_helper.rb |
simple_form-1.1.1 | test/test_helper.rb |
simple_form-1.1.0 | test/test_helper.rb |