Enable warnings when running RSpec from rake

- travis: Use rake to run specs to generate warnings.
This commit is contained in:
Claudio Bley 2018-12-09 10:17:37 +01:00
parent 74c7c9c0a1
commit 3e53464ddf
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,7 @@ rvm:
script:
- bundle exec rubocop
- bundle exec rspec
- bundle exec rake spec
- bundle exec rake install
- bundle binstubs colorls
- PATH=$PWD/bin:$PATH

View file

@ -3,7 +3,9 @@ require 'rubygems/tasks'
Gem::Tasks.new
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = "--warnings"
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|