Sha256: 289c4fd6b486541e5773e035d4c01dcb84edf73d909916efd7f11f31757cfba8

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

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

require 'rails'
require 'active_support'
require 'action_controller'
require 'active_record'

require 'rspec'

require 'responders'

require 'paginate-responder'

require 'pry'
require 'pry-byebug'

Dir[File.expand_path('spec/support/**/*.rb')].each {|f| require f }

$gem = ENV['GEM'].to_s
$gem = 'will_paginate' if $gem.empty?

case $gem
  when 'will_paginate'
    require 'will_paginate/array'
    require 'will_paginate/active_record'
  when 'kaminari'
    require 'kaminari'
    require 'kaminari/models/array_extension'

    Kaminari::Hooks.init if defined?(Kaminari::Hooks)

    Kaminari.configure do |config|
      config.default_per_page = 50
      config.max_per_page = 50
    end
end

RSpec.configure do |config|
  config.order = 'random'
  config.include SetupAndTeardownAdapter
  config.include ActionController::TestCase::Behavior
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paginate-responder-1.7.0 spec/spec_helper.rb