-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom_plan.rb
32 lines (23 loc) · 885 Bytes
/
custom_plan.rb
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
26
27
28
29
30
31
32
require 'zeus/rails'
class CustomPlan < Zeus::Rails
# def my_custom_command
# # see https://github.com/burke/zeus/blob/master/docs/ruby/modifying.md
# end
# See https://github.com/guard/guard-rspec/wiki/Warning:-no-environment
#
# Need the .to_s to convert the Pathname to string explicitly.
def test(*args)
# To get simple cov to work with zeus (see https://github.com/burke/zeus/wiki/SimpleCov)
require 'simplecov'
SimpleCov.start 'rails' do
SimpleCov.coverage_dir "simple_cov_output"
end
require 'coveralls'
Coveralls.wear!
# require all ruby files
Dir["#{Rails.root}/app/**/*.rb"].each { |f| load f }
ENV['GUARD_RSPEC_RESULTS_FILE'] = Rails.root.join('tmp', 'guard_rspec_results.txt').to_s # can be anything matching Guard::RSpec :results_file option in the Guardfile
super
end
end
Zeus.plan = CustomPlan.new