Sha256: c7cd9a617bcfbbd455c35842932d51ff843363cb7ba1327f4568b6f2efd0553a
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
require 'bundler/setup' Bundler.setup require 'pry' require 'rack/test' require 'rack/reducer' require 'sequel' require_relative 'behavior' ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'test' DB = Sequel.connect "sqlite://#{__dir__}/fixtures.sqlite" SEQUEL_QUERY = { dataset: DB[:artists], filters: [ ->(genre:) { grep(:genre, "%#{genre}%", case_insensitive: true) }, ->(name:) { grep(:name, "%#{name}%", case_insensitive: true) }, ->(order: 'genre') { order(order.to_sym) } ] }.freeze RSpec.configure do |config| config.color = true config.order = :random config.include Rack::Test::Methods end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-reducer-0.1.1 | spec/spec_helper.rb |