Skip to content

Commit

Permalink
combine both rspec and cukes in default rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jan 27, 2017
1 parent c42b465 commit b300e7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ group :development, :test do
gem "vcr"
gem "webmock"
gem "timecop"
gem "coveralls"
gem "coveralls", require: false
gem "rspec-rails"
gem "dotenv-rails"
gem "database_cleaner"
Expand Down
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require_relative 'config/application'
require 'coveralls/rake/task'

Rails.application.load_tasks
Coveralls::RakeTask.new

task :default => [:spec, :features, 'coveralls:push']
3 changes: 3 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'coveralls'
Coveralls.wear_merged!('rails')

# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

require 'vcr'
require 'timecop'
require 'coveralls'
require 'database_cleaner'

Coveralls.wear!
require 'coveralls'
Coveralls.wear_merged!('rails')

VCR.configure do |c|
c.cassette_library_dir = 'spec/fixtures/cassettes'
Expand Down

0 comments on commit b300e7e

Please sign in to comment.