capybara 0.3.0 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest.txt +4 -0
- data/README.rdoc +45 -5
- data/lib/capybara.rb +11 -4
- data/lib/capybara/driver/base.rb +3 -0
- data/lib/capybara/driver/celerity_driver.rb +44 -9
- data/lib/capybara/driver/rack_test_driver.rb +80 -16
- data/lib/capybara/driver/selenium_driver.rb +41 -9
- data/lib/capybara/dsl.rb +4 -10
- data/lib/capybara/node.rb +8 -0
- data/lib/capybara/rails.rb +8 -2
- data/lib/capybara/save_and_open_page.rb +5 -1
- data/lib/capybara/searchable.rb +17 -9
- data/lib/capybara/server.rb +35 -23
- data/lib/capybara/session.rb +91 -22
- data/lib/capybara/xpath.rb +66 -27
- data/spec/driver/celerity_driver_spec.rb +2 -2
- data/spec/driver/culerity_driver_spec.rb +1 -2
- data/spec/driver/rack_test_driver_spec.rb +0 -1
- data/spec/driver/remote_culerity_driver_spec.rb +9 -5
- data/spec/driver/selenium_driver_spec.rb +0 -1
- data/spec/drivers_spec.rb +24 -32
- data/spec/dsl/all_spec.rb +56 -25
- data/spec/dsl/attach_file_spec.rb +49 -51
- data/spec/dsl/check_spec.rb +12 -1
- data/spec/dsl/choose_spec.rb +19 -21
- data/spec/dsl/click_button_spec.rb +140 -87
- data/spec/dsl/click_link_spec.rb +88 -68
- data/spec/dsl/click_spec.rb +20 -22
- data/spec/dsl/current_url_spec.rb +6 -8
- data/spec/dsl/fill_in_spec.rb +75 -67
- data/spec/dsl/find_button_spec.rb +12 -14
- data/spec/dsl/find_by_id_spec.rb +16 -0
- data/spec/dsl/find_field_spec.rb +17 -19
- data/spec/dsl/find_link_spec.rb +13 -15
- data/spec/dsl/find_spec.rb +44 -23
- data/spec/dsl/has_button_spec.rb +32 -0
- data/spec/dsl/has_content_spec.rb +79 -81
- data/spec/dsl/has_css_spec.rb +81 -83
- data/spec/dsl/has_field_spec.rb +96 -0
- data/spec/dsl/has_link_spec.rb +33 -0
- data/spec/dsl/has_xpath_spec.rb +97 -89
- data/spec/dsl/locate_spec.rb +47 -26
- data/spec/dsl/select_spec.rb +61 -17
- data/spec/dsl/uncheck_spec.rb +17 -25
- data/spec/dsl/within_spec.rb +112 -104
- data/spec/public/test.js +3 -0
- data/spec/searchable_spec.rb +1 -1
- data/spec/server_spec.rb +7 -7
- data/spec/session/celerity_session_spec.rb +2 -2
- data/spec/session/culerity_session_spec.rb +1 -1
- data/spec/session_spec.rb +7 -0
- data/spec/session_with_javascript_support_spec.rb +139 -120
- data/spec/spec_helper.rb +7 -2
- data/spec/test_app.rb +8 -4
- data/spec/views/form.erb +50 -2
- data/spec/views/tables.erb +61 -1
- data/spec/views/with_html.erb +8 -2
- data/spec/views/with_js.erb +4 -0
- data/spec/xpath_spec.rb +17 -0
- metadata +6 -2
data/spec/dsl/find_field_spec.rb
CHANGED
@@ -1,24 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
end
|
1
|
+
shared_examples_for "find_field" do
|
2
|
+
describe '#find_field' do
|
3
|
+
before do
|
4
|
+
@session.visit('/form')
|
5
|
+
end
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
it "should find any field" do
|
8
|
+
@session.find_field('Dog').value.should == 'dog'
|
9
|
+
@session.find_field('form_description').text.should == 'Descriptive text goes here'
|
10
|
+
@session.find_field('Region')[:name].should == 'form[region]'
|
11
|
+
end
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
it "should be nil if the field doesn't exist" do
|
14
|
+
@session.find_field('Does not exist').should be_nil
|
15
|
+
end
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
17
|
+
it "should be aliased as 'field_labeled' for webrat compatibility" do
|
18
|
+
@session.field_labeled('Dog').value.should == 'dog'
|
19
|
+
@session.field_labeled('Does not exist').should be_nil
|
22
20
|
end
|
23
21
|
end
|
24
|
-
end
|
22
|
+
end
|
data/spec/dsl/find_link_spec.rb
CHANGED
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
shared_examples_for "find_link" do
|
3
|
-
|
4
|
-
describe '#find_link' do
|
5
|
-
before do
|
6
|
-
@session.visit('/with_html')
|
7
|
-
end
|
1
|
+
shared_examples_for "find_link" do
|
8
2
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
describe '#find_link' do
|
4
|
+
before do
|
5
|
+
@session.visit('/with_html')
|
6
|
+
end
|
7
|
+
|
8
|
+
it "should find any field" do
|
9
|
+
@session.find_link('foo').text.should == "ullamco"
|
10
|
+
@session.find_link('labore')[:href].should == "/with_simple_html"
|
11
|
+
end
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
end
|
13
|
+
it "should return nil if the field doesn't exist" do
|
14
|
+
@session.find_link('Does not exist').should be_nil
|
17
15
|
end
|
18
16
|
end
|
19
|
-
end
|
17
|
+
end
|
data/spec/dsl/find_spec.rb
CHANGED
@@ -1,36 +1,57 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
shared_examples_for "find" do
|
2
|
+
describe '#find' do
|
3
|
+
before do
|
4
|
+
@session.visit('/with_html')
|
5
|
+
end
|
6
|
+
|
7
|
+
it "should find the first element using the given locator" do
|
8
|
+
@session.find('//h1').text.should == 'This is a test'
|
9
|
+
@session.find("//input[@id='test_field']")[:value].should == 'monkey'
|
10
|
+
end
|
7
11
|
|
12
|
+
context "with css selectors" do
|
8
13
|
it "should find the first element using the given locator" do
|
9
|
-
@session.find('
|
10
|
-
@session.find("
|
14
|
+
@session.find(:css, 'h1').text.should == 'This is a test'
|
15
|
+
@session.find(:css, "input[id='test_field']")[:value].should == 'monkey'
|
11
16
|
end
|
17
|
+
end
|
12
18
|
|
13
|
-
|
14
|
-
|
19
|
+
context "with xpath selectors" do
|
20
|
+
it "should find the first element using the given locator" do
|
21
|
+
@session.find(:xpath, '//h1').text.should == 'This is a test'
|
22
|
+
@session.find(:xpath, "//input[@id='test_field']")[:value].should == 'monkey'
|
15
23
|
end
|
24
|
+
end
|
16
25
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
@session.find(
|
26
|
+
context "with css as default selector" do
|
27
|
+
before { Capybara.default_selector = :css }
|
28
|
+
it "should find the first element using the given locator" do
|
29
|
+
@session.find('h1').text.should == 'This is a test'
|
30
|
+
@session.find("input[id='test_field']")[:value].should == 'monkey'
|
21
31
|
end
|
32
|
+
after { Capybara.default_selector = :xpath }
|
33
|
+
end
|
22
34
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
35
|
+
it "should return nil when nothing was found" do
|
36
|
+
@session.find('//div[@id="nosuchthing"]').should be_nil
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should accept an XPath instance and respect the order of paths" do
|
40
|
+
@session.visit('/form')
|
41
|
+
@xpath = Capybara::XPath.text_field('Name')
|
42
|
+
@session.find(@xpath).value.should == 'John Smith'
|
43
|
+
end
|
27
44
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
45
|
+
context "within a scope" do
|
46
|
+
before do
|
47
|
+
@session.visit('/with_scope')
|
48
|
+
end
|
49
|
+
|
50
|
+
it "should find the first element using the given locator" do
|
51
|
+
@session.within(:xpath, "//div[@id='for_bar']") do
|
52
|
+
@session.find('//li').text.should =~ /With Simple HTML/
|
32
53
|
end
|
33
54
|
end
|
34
55
|
end
|
35
56
|
end
|
36
|
-
end
|
57
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
shared_examples_for "has_button" do
|
2
|
+
describe '#has_button?' do
|
3
|
+
before do
|
4
|
+
@session.visit('/form')
|
5
|
+
end
|
6
|
+
|
7
|
+
it "should be true if the given button is on the page" do
|
8
|
+
@session.should have_button('med')
|
9
|
+
@session.should have_button('crap321')
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be false if the given button is not on the page" do
|
13
|
+
@session.should_not have_button('monkey')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#has_no_button?' do
|
18
|
+
before do
|
19
|
+
@session.visit('/form')
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should be true if the given button is on the page" do
|
23
|
+
@session.should_not have_no_button('med')
|
24
|
+
@session.should_not have_no_button('crap321')
|
25
|
+
end
|
26
|
+
|
27
|
+
it "should be false if the given button is not on the page" do
|
28
|
+
@session.should have_no_button('monkey')
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
@@ -1,103 +1,101 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
10
|
-
|
11
|
-
it "should be true if scoped to an element which has the content" do
|
12
|
-
@session.visit('/with_html')
|
13
|
-
@session.within("//a[@title='awesome title']") do
|
14
|
-
@session.should have_content('labore')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should be false if scoped to an element which does not have the content" do
|
19
|
-
@session.visit('/with_html')
|
20
|
-
@session.within("//a[@title='awesome title']") do
|
21
|
-
@session.should_not have_content('monkey')
|
22
|
-
end
|
23
|
-
end
|
1
|
+
shared_examples_for "has_content" do
|
2
|
+
describe '#has_content?' do
|
3
|
+
it "should be true if the given content is on the page at least once" do
|
4
|
+
@session.visit('/with_html')
|
5
|
+
@session.should have_content('est')
|
6
|
+
@session.should have_content('Lorem')
|
7
|
+
@session.should have_content('Redirect')
|
8
|
+
end
|
24
9
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
@session.should have_content('
|
10
|
+
it "should be true if scoped to an element which has the content" do
|
11
|
+
@session.visit('/with_html')
|
12
|
+
@session.within("//a[@title='awesome title']") do
|
13
|
+
@session.should have_content('labore')
|
29
14
|
end
|
15
|
+
end
|
30
16
|
|
31
|
-
|
32
|
-
|
33
|
-
|
17
|
+
it "should be false if scoped to an element which does not have the content" do
|
18
|
+
@session.visit('/with_html')
|
19
|
+
@session.within("//a[@title='awesome title']") do
|
34
20
|
@session.should_not have_content('monkey')
|
35
21
|
end
|
22
|
+
end
|
36
23
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
24
|
+
it "should ignore tags" do
|
25
|
+
@session.visit('/with_html')
|
26
|
+
@session.should_not have_content('exercitation <a href="/foo" id="foo">ullamco</a> laboris')
|
27
|
+
@session.should have_content('exercitation ullamco laboris')
|
28
|
+
end
|
41
29
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
30
|
+
it "should be false if the given content is not on the page" do
|
31
|
+
@session.visit('/with_html')
|
32
|
+
@session.should_not have_content('xxxxyzzz')
|
33
|
+
@session.should_not have_content('monkey')
|
34
|
+
end
|
46
35
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
end
|
36
|
+
it 'should handle single quotes in the content' do
|
37
|
+
@session.visit('/with-quotes')
|
38
|
+
@session.should have_content("can't")
|
51
39
|
end
|
52
40
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
@session.should_not have_no_content('Lorem')
|
58
|
-
@session.should_not have_no_content('Redirect')
|
59
|
-
end
|
41
|
+
it 'should handle double quotes in the content' do
|
42
|
+
@session.visit('/with-quotes')
|
43
|
+
@session.should have_content(%q{"No," he said})
|
44
|
+
end
|
60
45
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
end
|
46
|
+
it 'should handle mixed single and double quotes in the content' do
|
47
|
+
@session.visit('/with-quotes')
|
48
|
+
@session.should have_content(%q{"you can't do that."})
|
49
|
+
end
|
50
|
+
end
|
67
51
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
52
|
+
describe '#has_no_content?' do
|
53
|
+
it "should be false if the given content is on the page at least once" do
|
54
|
+
@session.visit('/with_html')
|
55
|
+
@session.should_not have_no_content('est')
|
56
|
+
@session.should_not have_no_content('Lorem')
|
57
|
+
@session.should_not have_no_content('Redirect')
|
58
|
+
end
|
74
59
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
@session.should_not have_no_content('
|
60
|
+
it "should be false if scoped to an element which has the content" do
|
61
|
+
@session.visit('/with_html')
|
62
|
+
@session.within("//a[@title='awesome title']") do
|
63
|
+
@session.should_not have_no_content('labore')
|
79
64
|
end
|
65
|
+
end
|
80
66
|
|
81
|
-
|
82
|
-
|
83
|
-
|
67
|
+
it "should be true if scoped to an element which does not have the content" do
|
68
|
+
@session.visit('/with_html')
|
69
|
+
@session.within("//a[@title='awesome title']") do
|
84
70
|
@session.should have_no_content('monkey')
|
85
71
|
end
|
72
|
+
end
|
86
73
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
74
|
+
it "should ignore tags" do
|
75
|
+
@session.visit('/with_html')
|
76
|
+
@session.should have_no_content('exercitation <a href="/foo" id="foo">ullamco</a> laboris')
|
77
|
+
@session.should_not have_no_content('exercitation ullamco laboris')
|
78
|
+
end
|
91
79
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
80
|
+
it "should be true if the given content is not on the page" do
|
81
|
+
@session.visit('/with_html')
|
82
|
+
@session.should have_no_content('xxxxyzzz')
|
83
|
+
@session.should have_no_content('monkey')
|
84
|
+
end
|
96
85
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
86
|
+
it 'should handle single quotes in the content' do
|
87
|
+
@session.visit('/with-quotes')
|
88
|
+
@session.should_not have_no_content("can't")
|
89
|
+
end
|
90
|
+
|
91
|
+
it 'should handle double quotes in the content' do
|
92
|
+
@session.visit('/with-quotes')
|
93
|
+
@session.should_not have_no_content(%q{"No," he said})
|
94
|
+
end
|
95
|
+
|
96
|
+
it 'should handle mixed single and double quotes in the content' do
|
97
|
+
@session.visit('/with-quotes')
|
98
|
+
@session.should_not have_no_content(%q{"you can't do that."})
|
101
99
|
end
|
102
100
|
end
|
103
|
-
end
|
101
|
+
end
|
data/spec/dsl/has_css_spec.rb
CHANGED
@@ -1,109 +1,107 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
shared_examples_for "has_css" do
|
2
|
+
describe '#has_css?' do
|
3
|
+
before do
|
4
|
+
@session.visit('/with_html')
|
5
|
+
end
|
6
|
+
|
7
|
+
it "should be true if the given selector is on the page" do
|
8
|
+
@session.should have_css("p")
|
9
|
+
@session.should have_css("p a#foo")
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be false if the given selector is not on the page" do
|
13
|
+
@session.should_not have_css("abbr")
|
14
|
+
@session.should_not have_css("p a#doesnotexist")
|
15
|
+
@session.should_not have_css("p.nosuchclass")
|
16
|
+
end
|
7
17
|
|
8
|
-
|
9
|
-
|
10
|
-
@session.should have_css("
|
18
|
+
it "should respect scopes" do
|
19
|
+
@session.within "//p[@id='first']" do
|
20
|
+
@session.should have_css("a#foo")
|
21
|
+
@session.should_not have_css("a#red")
|
11
22
|
end
|
23
|
+
end
|
12
24
|
|
13
|
-
|
14
|
-
|
15
|
-
@session.
|
16
|
-
@session.
|
25
|
+
context "with count" do
|
26
|
+
it "should be true if the content is on the page the given number of times" do
|
27
|
+
@session.should have_css("p", :count => 3)
|
28
|
+
@session.should have_css("p a#foo", :count => 1)
|
17
29
|
end
|
18
30
|
|
19
|
-
it "should
|
20
|
-
@session.
|
21
|
-
|
22
|
-
@session.should_not have_css("a#red")
|
23
|
-
end
|
31
|
+
it "should be false if the content is on the page the given number of times" do
|
32
|
+
@session.should_not have_css("p", :count => 6)
|
33
|
+
@session.should_not have_css("p a#foo", :count => 2)
|
24
34
|
end
|
25
35
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
@session.should have_css("p a#foo", :count => 1)
|
30
|
-
end
|
31
|
-
|
32
|
-
it "should be false if the content is on the page the given number of times" do
|
33
|
-
@session.should_not have_css("p", :count => 6)
|
34
|
-
@session.should_not have_css("p a#foo", :count => 2)
|
35
|
-
end
|
36
|
-
|
37
|
-
it "should be false if the content isn't on the page at all" do
|
38
|
-
@session.should_not have_css("abbr", :count => 2)
|
39
|
-
@session.should_not have_css("p a.doesnotexist", :count => 1)
|
40
|
-
end
|
36
|
+
it "should be false if the content isn't on the page at all" do
|
37
|
+
@session.should_not have_css("abbr", :count => 2)
|
38
|
+
@session.should_not have_css("p a.doesnotexist", :count => 1)
|
41
39
|
end
|
40
|
+
end
|
42
41
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
42
|
+
context "with text" do
|
43
|
+
it "should discard all matches where the given string is not contained" do
|
44
|
+
@session.should have_css("p a", :text => "Redirect", :count => 1)
|
45
|
+
@session.should_not have_css("p a", :text => "Doesnotexist")
|
46
|
+
end
|
48
47
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
end
|
48
|
+
it "should discard all matches where the given regexp is not matched" do
|
49
|
+
@session.should have_css("p a", :text => /re[dab]i/i, :count => 1)
|
50
|
+
@session.should_not have_css("p a", :text => /Red$/)
|
53
51
|
end
|
54
52
|
end
|
53
|
+
end
|
55
54
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
describe '#has_no_css?' do
|
56
|
+
before do
|
57
|
+
@session.visit('/with_html')
|
58
|
+
end
|
60
59
|
|
61
|
-
|
62
|
-
|
63
|
-
|
60
|
+
it "should be false if the given selector is on the page" do
|
61
|
+
@session.should_not have_no_css("p")
|
62
|
+
@session.should_not have_no_css("p a#foo")
|
63
|
+
end
|
64
|
+
|
65
|
+
it "should be true if the given selector is not on the page" do
|
66
|
+
@session.should have_no_css("abbr")
|
67
|
+
@session.should have_no_css("p a#doesnotexist")
|
68
|
+
@session.should have_no_css("p.nosuchclass")
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should respect scopes" do
|
72
|
+
@session.within "//p[@id='first']" do
|
73
|
+
@session.should_not have_no_css("a#foo")
|
74
|
+
@session.should have_no_css("a#red")
|
64
75
|
end
|
76
|
+
end
|
65
77
|
|
66
|
-
|
67
|
-
|
68
|
-
@session.
|
69
|
-
@session.
|
78
|
+
context "with count" do
|
79
|
+
it "should be false if the content is on the page the given number of times" do
|
80
|
+
@session.should_not have_no_css("p", :count => 3)
|
81
|
+
@session.should_not have_no_css("p a#foo", :count => 1)
|
70
82
|
end
|
71
83
|
|
72
|
-
it "should
|
73
|
-
@session.
|
74
|
-
|
75
|
-
@session.should have_no_css("a#red")
|
76
|
-
end
|
84
|
+
it "should be true if the content is on the page the given number of times" do
|
85
|
+
@session.should have_no_css("p", :count => 6)
|
86
|
+
@session.should have_no_css("p a#foo", :count => 2)
|
77
87
|
end
|
78
88
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
@session.should_not have_no_css("p a#foo", :count => 1)
|
83
|
-
end
|
84
|
-
|
85
|
-
it "should be true if the content is on the page the given number of times" do
|
86
|
-
@session.should have_no_css("p", :count => 6)
|
87
|
-
@session.should have_no_css("p a#foo", :count => 2)
|
88
|
-
end
|
89
|
-
|
90
|
-
it "should be true if the content isn't on the page at all" do
|
91
|
-
@session.should have_no_css("abbr", :count => 2)
|
92
|
-
@session.should have_no_css("p a.doesnotexist", :count => 1)
|
93
|
-
end
|
89
|
+
it "should be true if the content isn't on the page at all" do
|
90
|
+
@session.should have_no_css("abbr", :count => 2)
|
91
|
+
@session.should have_no_css("p a.doesnotexist", :count => 1)
|
94
92
|
end
|
93
|
+
end
|
95
94
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
95
|
+
context "with text" do
|
96
|
+
it "should discard all matches where the given string is not contained" do
|
97
|
+
@session.should_not have_no_css("p a", :text => "Redirect", :count => 1)
|
98
|
+
@session.should have_no_css("p a", :text => "Doesnotexist")
|
99
|
+
end
|
101
100
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
end
|
101
|
+
it "should discard all matches where the given regexp is not matched" do
|
102
|
+
@session.should_not have_no_css("p a", :text => /re[dab]i/i, :count => 1)
|
103
|
+
@session.should have_no_css("p a", :text => /Red$/)
|
106
104
|
end
|
107
105
|
end
|
108
106
|
end
|
109
|
-
end
|
107
|
+
end
|