#172 ✓out-of-date
Zach Dennis

Put HaveTagMatcher in Webrat::Matchers namespace

Reported by Zach Dennis | February 19th, 2009 @ 02:40 PM

When requiring 'webrat/matchers' it doesn't include the HaveTagMatcher which is fine as that poses some issues in Rails issues while rspec-rails provides its own have_tag method.

However, when specifically asking for "webrat/core/matchers/have_tag" it would be nice it the have_tag method existed in the Webrat::Matchers namespace. That would let do this:


require 'webrat'
require 'webrat/core/matchers/have_tag'

Spec::Runner.configure do |config|
  config.include Webrat::Matchers, :type => :view
end

Instead of...


require 'webrat'
require 'webrat/core/matchers/have_tag'

Spec::Runner.configure do |config|
  config.include Webrat::Matchers, :type => :view
  config.include Webrat::HaveTagMatcher, :type => :view
end

I know it only saves me a line, but it's a good line to be saved.

Comments and changes to this ticket

  • gaffo

    gaffo May 7th, 2009 @ 03:24 PM

    • Tag changed from featurerequest to featurerequest, stale
    • State changed from “new” to “awaiting-patch”

    Zach, It's been a while so I'm just checking if this is still needed. Please let us know.

  • gaffo

    gaffo June 15th, 2009 @ 01:14 AM

    • State changed from “awaiting-patch” to “out-of-date”

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