Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception when using on windows #19

Open
Curt900701 opened this issue Mar 13, 2019 · 0 comments
Open

Throw exception when using on windows #19

Curt900701 opened this issue Mar 13, 2019 · 0 comments

Comments

@Curt900701
Copy link

rspec_html_reporter.rb at line 60

if os == :windows
  file_path = data[0] + ':' + data[1]
  line_number = data[2].to_i
else
  file_path = data.first
  line_number = data[1].to_i
end

I ran on windows, and using rspec with version 3.8.0, found that get file_path & line_number should be same with other OS, like:

file_path = data.first
line_number = data[1].to_i

Otherwise, it will throw exception : No such file Error at line 67: lines = File.readlines(file_path)

Please kindly confirm it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant