mirror of
https://github.com/activerecord-hackery/ransack.git
synced 2022-11-09 13:47:45 -05:00
25 lines
No EOL
553 B
Ruby
25 lines
No EOL
553 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'
|
|
rspec.rspec_opts = ['--backtrace']
|
|
end
|
|
|
|
RSpec::Core::RakeTask.new(:mongoid) do |rspec|
|
|
ENV['SPEC'] = 'spec/mongoid/**/*_spec.rb'
|
|
rspec.rspec_opts = ['--backtrace']
|
|
end
|
|
|
|
task :default => :spec
|
|
|
|
desc "Open an irb session with Ransack and the sample data used in specs"
|
|
task :console do
|
|
require 'irb'
|
|
require 'irb/completion'
|
|
require 'console'
|
|
ARGV.clear
|
|
IRB.start
|
|
end |