On Fri, Jan 16, 2009 at 8:59 AM, James Byrne <li...@ruby-forum.com> wrote:
> 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).
>>
>
> 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:
>
> /usr/lib/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrate/rspec-rails.rb
>
> Works for me but, as always, YMMV.

better prob would be to just download the source, update the manifest,
build and install the gem yourself.

Pat
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to