Closed lidaobing closed 11 years ago
With this fix, I get errors because rspec/version can't be found. I don't actually install gem 'rspec', but rather, 'rspec-rails'. The version can still be accessed by requiring 'rspec/rails/version' instead. Perhaps this can be caught and set? Something like the following will work:
begin
require 'rspec/version'
version_string = ::RSpec::Version::STRING
rescue LoadError => e
require 'rspec/rails/version'
version_string = ::RSpec::Rails::Version::STRING
end
And then when figuring out the RSpec_2_12_0_bug, use version_string
.
I've just noticed that an issue (with a better solution) has been opened for this: https://github.com/nicksieger/ci_reporter/pull/83