Skip to content

Instantly share code, notes, and snippets.

@clemens
Created February 10, 2009 08:50
Show Gist options
  • Save clemens/61312 to your computer and use it in GitHub Desktop.
Save clemens/61312 to your computer and use it in GitHub Desktop.
def has_authorized_tag(*args)
# @response.body.should have_authorized_tag(*args)
has_tag "span[class^=newsletter_stats]" do
has_tag *args
end
end
def have_authorized_tag(*args)
have_tag('.newsletter_stats') # { |tag| tag.should have_tag(*args) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment