require 'rubygems' require 'bundler' Bundler.setup require 'active_support' require 'action_pack' require 'action_view' require 'action_controller' require 'rails' require 'rspec/rails' require 'webrat' require 'webrat/core/matchers' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'jquery-ui-form' module JqueryUiFormSpecHelper # include Rails.application.routes.url_helpers class Application < Rails::Application end end JqueryUiFormSpecHelper::Application.routes.draw do match '/hello' => 'hello#new' end ActionView::Base.send(:include, JqueryUiForm::Helpers::FormHelper) ActionView::Base.send(:include, JqueryUiForm::Helpers::ErrorHelper) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Helpers::WrapperHelper) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Helpers::LabelHelper) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Helpers::ButtonHelper) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Helpers::InputHelper) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::BooleanInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::StringInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::PasswordInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::SelectInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::RadioInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::CheckBoxesInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::TextInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::HiddenInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::EmailInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::PhoneInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::UrlInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::SearchInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::NumberInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::RangeInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::FileInput) JqueryUiForm::FormBuilder.send(:include, JqueryUiForm::Inputs::DateInput) JqueryUiForm::FormBuilder.use_i18n = false module ActionController module UrlFor def _routes ActionDispatch::Routing::RouteSet.new end end end