capybara_minitest_spec 1.0.0 → 1.0.1
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.
- checksums.yaml +7 -0
- data/.rvmrc +1 -1
- data/.travis.yml +1 -1
- data/LICENSE.txt +22 -0
- data/README.md +6 -1
- data/capybara_minitest_spec.gemspec +1 -0
- data/lib/capybara_minitest_spec/version.rb +1 -1
- data/spec/capybara_rspec_matchers.spec.rb +159 -48
- data/spec/helper.rb +1 -33
- metadata +20 -69
- data/.gemtest +0 -0
- data/spec/test_app/test_app.rb +0 -146
- data/spec/test_app/views/buttons.erb +0 -4
- data/spec/test_app/views/fieldsets.erb +0 -29
- data/spec/test_app/views/form.erb +0 -365
- data/spec/test_app/views/frame_one.erb +0 -8
- data/spec/test_app/views/frame_two.erb +0 -8
- data/spec/test_app/views/header_links.erb +0 -7
- data/spec/test_app/views/host_links.erb +0 -12
- data/spec/test_app/views/popup_one.erb +0 -8
- data/spec/test_app/views/popup_two.erb +0 -8
- data/spec/test_app/views/postback.erb +0 -13
- data/spec/test_app/views/tables.erb +0 -122
- data/spec/test_app/views/with_html.erb +0 -74
- data/spec/test_app/views/with_html_entities.erb +0 -1
- data/spec/test_app/views/with_js.erb +0 -48
- data/spec/test_app/views/with_scope.erb +0 -36
- data/spec/test_app/views/with_simple_html.erb +0 -1
- data/spec/test_app/views/within_frames.erb +0 -10
- data/spec/test_app/views/within_popups.erb +0 -25
@@ -1,48 +0,0 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
2
|
-
<head>
|
3
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
4
|
-
<title>with_js</title>
|
5
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
6
|
-
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
|
7
|
-
<script src="/test.js" type="text/javascript" charset="utf-8"></script>
|
8
|
-
</head>
|
9
|
-
|
10
|
-
<body id="with_js">
|
11
|
-
<h1>FooBar</h1>
|
12
|
-
|
13
|
-
<p id="change">This is text</p>
|
14
|
-
<div id="drag">
|
15
|
-
<p>This is a draggable element.</p>
|
16
|
-
</div>
|
17
|
-
<div id="drop">
|
18
|
-
<p>It should be dropped here.</p>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
<p><a href="#" id="clickable">Click me</a></p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<select id="waiter">
|
25
|
-
<option>Foo</option>
|
26
|
-
<option>My Waiting Option</option>
|
27
|
-
</select>
|
28
|
-
</p>
|
29
|
-
|
30
|
-
<p>
|
31
|
-
<input type="text" name="with_focus_event" value="" id="with_focus_event"/>
|
32
|
-
</p>
|
33
|
-
|
34
|
-
<p>
|
35
|
-
<input type="checkbox" id="checkbox_with_event"/>
|
36
|
-
</p>
|
37
|
-
|
38
|
-
<p>
|
39
|
-
<input type="submit" id="fire_ajax_request" value="Fire Ajax Request"/>
|
40
|
-
</p>
|
41
|
-
|
42
|
-
<p>
|
43
|
-
<a id="reload-link" href="#">Reload!</a>
|
44
|
-
<div id="reload-me"><em>waiting to be reloaded</em></div>
|
45
|
-
</p>
|
46
|
-
</body>
|
47
|
-
</html>
|
48
|
-
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<h1>This page is used for testing various scopes</h1>
|
2
|
-
|
3
|
-
<p id="for_foo">
|
4
|
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
|
5
|
-
incididunt ut labore et dolore magna aliqua. Ut enim ad minim venia.
|
6
|
-
<a href="/redirect">Go</a>
|
7
|
-
</p>
|
8
|
-
|
9
|
-
<div id="for_bar">
|
10
|
-
<ul>
|
11
|
-
<li>With Simple HTML: <a href="/with_simple_html">Go</a>
|
12
|
-
<form action="/redirect" method="post" accept-charset="utf-8">
|
13
|
-
<p>
|
14
|
-
<label for="simple_first_name">First Name</label>
|
15
|
-
<input type="text" name="first_name" value="John" id="simple_first_name"/>
|
16
|
-
</p>
|
17
|
-
<p><input type="submit" value="Go"/></p>
|
18
|
-
</form>
|
19
|
-
</li>
|
20
|
-
<li>Bar: <a href="/foo">Go</a>
|
21
|
-
<form action="/form" method="post" accept-charset="utf-8">
|
22
|
-
<p>
|
23
|
-
<label for="bar_first_name">First Name</label>
|
24
|
-
<input type="text" name="form[first_name]" value="Peter" id="bar_first_name"/>
|
25
|
-
</p>
|
26
|
-
<p><input type="submit" value="Go"/></p>
|
27
|
-
</form>
|
28
|
-
</li>
|
29
|
-
</ul>
|
30
|
-
</div>
|
31
|
-
|
32
|
-
<div id="another_foo">
|
33
|
-
<ul>
|
34
|
-
<li>With Simple HTML: <a href="/">Go</a>
|
35
|
-
</ul>
|
36
|
-
</div>
|
@@ -1 +0,0 @@
|
|
1
|
-
Bar
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<title>With Popups</title>
|
4
|
-
<script language="javascript" type="text/javascript">
|
5
|
-
<!--
|
6
|
-
|
7
|
-
function popItUp(name, url) {
|
8
|
-
newwindow=window.open(url,name,'height=200,width=150');
|
9
|
-
if (window.focus) { newwindow.focus() }
|
10
|
-
return false;
|
11
|
-
}
|
12
|
-
|
13
|
-
function init() {
|
14
|
-
popItUp('firstPopup', '/popup_one');
|
15
|
-
popItUp('secondPopup', '/popup_two');
|
16
|
-
}
|
17
|
-
window.onload = init;
|
18
|
-
|
19
|
-
// -->
|
20
|
-
</script>
|
21
|
-
</head>
|
22
|
-
<body>
|
23
|
-
<div id="divInMainWindow">This is the text for divInMainWindow</div>
|
24
|
-
</body>
|
25
|
-
</html>
|