-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address todos generated by rubocop for files in Rakefile and Appraisa…
…ls. (#298) This partially addresses #293. Since rubocop generated quite a few todos, the commits addressing them are split up into a few different PRs that cover different files.
- Loading branch information
1 parent
c6b66bb
commit 77d707d
Showing
3 changed files
with
24 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# These are the versions of Rails we want to test against. | ||
appraise 'rails4.2' do | ||
gem 'rails', '~> 4.2.0' | ||
appraise "rails4.2" do | ||
gem "rails", "~> 4.2.0" | ||
end | ||
|
||
appraise 'rails5.0' do | ||
gem 'activerecord', '~> 5.0.0' | ||
gem 'railties', '~> 5.0.0' | ||
appraise "rails5.0" do | ||
gem "activerecord", "~> 5.0.0" | ||
gem "railties", "~> 5.0.0" | ||
end | ||
|
||
appraise 'rails5.1' do | ||
gem 'activerecord', '~> 5.1.0' | ||
gem 'railties', '~> 5.1.0' | ||
appraise "rails5.1" do | ||
gem "activerecord", "~> 5.1.0" | ||
gem "railties", "~> 5.1.0" | ||
end | ||
|
||
appraise 'rails5.2' do | ||
gem 'activerecord', '~> 5.2.0' | ||
gem 'railties', '~> 5.2.0' | ||
appraise "rails5.2" do | ||
gem "activerecord", "~> 5.2.0" | ||
gem "railties", "~> 5.2.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
require 'bundler/setup' | ||
require 'cucumber/rake/task' | ||
require 'rspec/core/rake_task' | ||
require "bundler/setup" | ||
require "cucumber/rake/task" | ||
require "rspec/core/rake_task" | ||
|
||
Bundler::GemHelper.install_tasks name: 'factory_bot_rails' | ||
Bundler::GemHelper.install_tasks name: "factory_bot_rails" | ||
|
||
Cucumber::Rake::Task.new(:cucumber) do |t| | ||
t.fork = true | ||
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')] | ||
t.cucumber_opts = ["--format", (ENV["CUCUMBER_FORMAT"] || "progress")] | ||
end | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
require 'appraisal' | ||
require "appraisal" | ||
|
||
desc 'Run the test suite' | ||
task :default do |t| | ||
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/ | ||
exec 'rake spec && rake cucumber' | ||
desc "Run the test suite" | ||
task :default do | ||
if ENV["BUNDLE_GEMFILE"] =~ /gemfiles/ | ||
exec "rake spec && rake cucumber" | ||
else | ||
Rake::Task['appraise'].execute | ||
Rake::Task["appraise"].execute | ||
end | ||
end | ||
|
||
task :appraise => ['appraisal:install'] do |t| | ||
exec 'rake appraisal' | ||
task appraise: ["appraisal:install"] do | ||
exec "rake appraisal" | ||
end |