Sha256: 9e0fdae1e14c469218e4281b312c197d87aec886d01d9eb728c75bb614627767

Contents?: true

Size: 812 Bytes

Versions: 5

Compression:

Stored size: 812 Bytes

Contents

require 'timecop'
require 'mocha/mini_test'

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

def setup_test_fixture
  @user = User.new(email: 'steve@example.com', password: 'secret', comments: 'my comment')
  @builder = BootstrapForm::FormBuilder.new(:user, @user, self, {})
  @horizontal_builder = BootstrapForm::FormBuilder.new(:user, @user, self, { layout: :horizontal, label_col: "col-sm-2", control_col: "col-sm-10" })
  I18n.backend.store_translations(:en, {activerecord: {help: {user: {password: "A good password should be at least six characters long"}}}})
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrap_form-2.5.2 test/test_helper.rb
bootstrap_form-2.5.1 test/test_helper.rb
bootstrap_form-2.5.0 test/test_helper.rb
bootstrap_form-2.4.0 test/test_helper.rb
bootstrap_form-2.3.0 test/test_helper.rb