Sha256: 00b123e250b8a5b519294644cb3ad82d78d80f9d4b2d356a20861f3520094f05
Contents?: true
Size: 940 Bytes
Versions: 15
Compression:
Stored size: 940 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" desc "Run RSpec code examples (skip postgres required ones)" RSpec::Core::RakeTask.new(:spec) # In CI, as part of the .rspec_ci, load a helper that sets the configuration # setting to allow the postgres specs to run. desc "Run RSpec code examples (assumes ci dependencies)" RSpec::Core::RakeTask.new("spec:ci") do |t| t.rspec_opts = "--options #{File.expand_path(".rspec_ci", __dir__)}" end desc "Run RSpec code examples (with local postgres dependencies)" RSpec::Core::RakeTask.new("spec:dev") do |t| # Load the PostgresRunner helper to facilitate a clean postgres environment # for testing locally (not necessary for CI), and enables the postgres test # via the helper. pg_runner = File.join("spec", "postgres_runner_helper.rb") t.rspec_opts = "-r #{File.expand_path(pg_runner, __dir__)}" end task :default do Rake::Task["spec#{':ci' if ENV['CI']}"].invoke end
Version data entries
15 entries across 15 versions & 1 rubygems