Skip to content

Commit

Permalink
Simplify Rakefile
Browse files Browse the repository at this point in the history
This didn't need the extra complexity, which was unconventional - and
this repo doesn't even have an integration folder under spec 🤔.
  • Loading branch information
kevindew committed Oct 19, 2022
1 parent 2b785e3 commit 6a9189a
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
require "bundler/setup"
require "bundler/gem_tasks"

Bundler::GemHelper.install_tasks

require "rspec/core/rake_task"
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |task|
task.pattern = "spec/**/*_spec.rb"
end
require "rubocop/rake_task"

namespace :spec do
desc "Run integration specs"
RSpec::Core::RakeTask.new(:integration) do |task|
task.pattern = "spec/integration/**/*_spec.rb"
end
end

desc "Lint Ruby"
task :lint do
sh "bundle exec rubocop --format clang"
end
Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new

task default: %i[spec lint]
task default: %i[rubocop spec]

0 comments on commit 6a9189a

Please sign in to comment.