public
Description: have_tag() without Rails' assert_select()
Clone URL: git://github.com/pd/rspec_hpricot_matchers.git
Search Repo:
installation instructions
pd (author)
Mon Mar 31 04:55:56 -0700 2008
commit  985b104193e47c74e9fdcfd125e1db915debb79c
tree    391ea693af55e69335edb943b9db37a7660d5895
parent  1778be52222fde980e86024c90bfac393f010755
0
...
4
5
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
8
9
...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
0
@@ -4,6 +4,23 @@ An implementation of have_tag(), as in rspec_on_rails, but sitting atop
0
 Hpricot rather than merely wrapping assert_select().
0
 
0
 
0
+== Installation
0
+
0
+To use rspec_hpricot_matchers in your project, install the gem, and
0
+add the following to your spec_helper.rb file:
0
+
0
+ require 'rspec_hpricot_matchers'
0
+ Spec::Runner.configure do |config|
0
+ config.include(RspecHpricotMatchers)
0
+ end
0
+
0
+Similarly, to make the matchers available to stories, you can add the
0
+following to your stories/helper.rb file:
0
+
0
+ require 'rspec_hpricot_matchers'
0
+ include RspecHpricotMatchers
0
+
0
+
0
 == Usage
0
 
0
 As its first argument, have_tag() accepts any CSS or XPath selectors

Comments

    No one has commented yet.