#178 ✓resolved

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

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

  • 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