forked from HornsAndHooves/enum_state_machine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
25 lines (19 loc) · 680 Bytes
/
Rakefile
File metadata and controls
25 lines (19 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'rubygems'
require 'bundler'
Bundler.setup
require 'rake'
require 'rake/testtask'
desc 'Default: run all tests.'
task :default => :test
desc "Test enum_state_machine."
Rake::TestTask.new(:test) do |t|
integration = %w(active_model active_record).detect do |name|
Bundler.default_gemfile.to_s.include?(name)
end
t.libs << 'lib'
t.test_files = integration ? Dir["test/unit/integrations/#{integration}_test.rb"] : Dir['test/{functional,unit}/*_test.rb'] + ['test/unit/integrations/base_test.rb']
t.verbose = true
t.warning = true if ENV['WARNINGS']
end
load File.dirname(__FILE__) + '/lib/tasks/enum_state_machine.rake'
Bundler::GemHelper.install_tasks