Created
September 19, 2014 10:29
-
-
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.
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
RSpec 3.1.5 works on Windows.
rspec/rspec-core@a85884c