Skip to content

Instantly share code, notes, and snippets.

@ohtake
Created September 19, 2014 10:29
Show Gist options
  • Save ohtake/f28554aa7a6ccc83fc1d to your computer and use it in GitHub Desktop.
Save ohtake/f28554aa7a6ccc83fc1d to your computer and use it in GitHub Desktop.
RSpec 3.1 (rspec-core 3.1.4) does not work on Windows. Use `rake spec:win` on Windows.
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
# Workaround for Windows (Do not shellescape the pattern)
RSpec::Core::RakeTask.new(:'spec:win') do |task, args|
task.define_singleton_method :file_inclusion_specification do
"--pattern '#{pattern}'"
end
end
@ohtake
Copy link
Author

ohtake commented Oct 6, 2014

RSpec 3.1.5 works on Windows.

rspec/rspec-core@a85884c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment