If you’re on Rails and use RSpec matchers, the latest official webrat
0.3.4
gem is broken. It doesn’t contain the webrat/rspec-rails.rb file (a
packaging bug).
aslakhellesoy-webrat (0.3.2.2) works fine.
brynary’s master branch is actually behind the latest release (0.3.4).
It
still uses the 0.3.2.2 version. The latest webrat release was probably
done
from the 0-3-stable branch.
If you’re on Rails and use RSpec matchers, the latest official
webrat 0.3.4 gem is broken. It doesn’t contain the webrat/rspec-rails.rb
file (a packaging bug).
If you feel adventurous then, after installing cucumber-0.3.4, you could
create a file with this content:
#bod
require “webrat/core/matchers”
Spec::Runner.configure do |config|
config.include(Webrat::Matchers, :type => :controller)
config.include(Webrat::Matchers, :type => :helper)
config.include(Webrat::Matchers, :type => :view)
end #eod
and save it (with the appropriate ownership and permissions for your OS
of course) as:
`gem_original_require’: no such file to load – spec/rails
(MissingSourceFile)
Aslak Hellesøy wrote:
If you’re on Rails and use RSpec matchers, the latest official webrat
0.3.4
gem is broken. It doesn’t contain the webrat/rspec-rails.rb file (a
packaging bug).
aslakhellesoy-webrat (0.3.2.2) works fine.
I tried replacing line 10 in support/env from require 'webrat' to:
require 'aslakhellesoy-webrat'
and:
gem 'aslakhellesoy-webrat', '0.3.2.2'
But neither worked. (If using gem is the wrong way to load a
particular gem in a rails project please point me out the correct way to
me
I also just tried uninstalling the ‘webrat’ gem, leaving only
‘aslakhellesoy-webrat’, and changed line 10 back to require 'webrat',
but still have get the error.