1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
activerecord-hackery--ransack/Rakefile
2018-06-25 20:50:14 +02:00

24 lines
608 B
Ruby

require 'bundler'
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec) do |rspec|
ENV['SPEC'] = 'spec/ransack/**/*_spec.rb'
# With Rails 3, using `--backtrace` raises 'invalid option' when testing.
# With Rails 4 and 5 it can be uncommented to see the backtrace:
#
# rspec.rspec_opts = ['--backtrace']
end
task :default do
Rake::Task["spec"].invoke
end
desc "Open an irb session with Ransack and the sample data used in specs"
task :console do
require 'pry'
require File.expand_path('../spec/console.rb', __FILE__)
ARGV.clear
Pry.start
end