Sha256: fb180da1b7317eb147d4a758759433b72ebb3aa58c8f3c174c813f23b56fa9a4

Contents?: true

Size: 1.16 KB

Versions: 14

Compression:

Stored size: 1.16 KB

Contents

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

require File.expand_path('../../test/dummy/config/environment.rb', __FILE__)
ActiveRecord::Migrator.migrations_paths = [
  File.expand_path('../../test/dummy/db/migrate', __FILE__)
]
require 'rails/test_help'

# Filter out Minitest backtrace while allowing backtrace from other libraries
# to be shown.
Minitest.backtrace_filter = Minitest::BacktraceFilter.new

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

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
  ActiveSupport::TestCase.fixtures :all
end

module ActiveSupport
  class TestCase
    def valid_invalid_column_values_test(record, column, valid_values, invalid_values)
      valid_values.each do |v|
        record[column] = v
        assert record.valid?, "#{record.errors.messages}, #{column} = #{v.inspect} should be valid"
      end
      invalid_values.each do |v|
        record[column] = v
        assert_not record.valid?, "#{column} = #{v.inspect} should be invalid"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tasks_scheduler-0.3.0 test/test_helper.rb
tasks_scheduler-0.2.3 test/test_helper.rb
tasks_scheduler-0.2.2 test/test_helper.rb
tasks_scheduler-0.2.1 test/test_helper.rb
tasks_scheduler-0.2.0 test/test_helper.rb
tasks_scheduler-0.1.0 test/test_helper.rb
tasks_scheduler-0.0.10 test/test_helper.rb
tasks_scheduler-0.0.9 test/test_helper.rb
tasks_scheduler-0.0.8 test/test_helper.rb
tasks_scheduler-0.0.7 test/test_helper.rb
tasks_scheduler-0.0.6 test/test_helper.rb
tasks_scheduler-0.0.5 test/test_helper.rb
tasks_scheduler-0.0.3 test/test_helper.rb
tasks_scheduler-0.0.2 test/test_helper.rb