#178 ✓resolved
Andrew

undefined method 'assert_have_tag'

Reported by Andrew | February 25th, 2009 @ 06:20 PM

in my "test/integration/myclass_integration_test.rb"

require 'webrat' require "webrat/core/matchers/have_tag" Webrat.configure do |config| config.mode = :rails end

then: assert_have_tag "ul", :class => "metadata"

NoMethodError: undefined method assert_have_tag' for #<ActionController::Integration::Session:0x34fe220>

Using shoulda & mocha

Comments and changes to this ticket

  • Mitch

    Mitch March 21st, 2009 @ 06:01 PM

    I have this problem as well, but I am very new to Webrat. I'm using Webrat 4.3 with shoulda & mocha + Rails 2.3.

    For now I'm using assert_have_selector instead of assert_have_tag and it seems to work.

  • gaffo

    gaffo May 15th, 2009 @ 08:34 PM

    • State changed from “new” to “resolved”

    I believe that you need to include Webrat::HaveTagMatcher to make this work.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages