Skip to content

Instantly share code, notes, and snippets.

@pinzolo
Created June 13, 2014 07:06
Show Gist options
  • Save pinzolo/2f484a9902e97533a8e2 to your computer and use it in GitHub Desktop.
Save pinzolo/2f484a9902e97533a8e2 to your computer and use it in GitHub Desktop.
-cfs option is invalid from RSpec3
#!/usr/bin/env rake
require "bundler/gem_tasks"
task :default => [:spec]
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['-cfs'] # ← ココ!!
end
rescue LoadError => e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment