spectie 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. data/LICENSE +21 -0
  2. data/README.rdoc +85 -0
  3. data/Rakefile +8 -0
  4. data/VERSION.yml +4 -0
  5. data/initialize.rb +6 -0
  6. data/lib/spectie.rb +3 -0
  7. data/lib/spectie/configuration.rb +10 -0
  8. data/lib/spectie/main.rb +26 -0
  9. data/lib/spectie/rails.rb +2 -0
  10. data/lib/spectie/rails_story_example_group.rb +55 -0
  11. data/lib/spectie/selenium.rb +3 -0
  12. data/lib/spectie/selenium/configuration.rb +27 -0
  13. data/lib/spectie/selenium/story_example_group.rb +51 -0
  14. data/lib/spectie/story_example_group_methods.rb +40 -0
  15. data/rake_tasks/package.rake +51 -0
  16. data/rake_tasks/publish.rake +40 -0
  17. data/rake_tasks/spec.rake +42 -0
  18. data/rake_tasks/utility.rake +11 -0
  19. data/rdoc/classes/Spectie.html +135 -0
  20. data/rdoc/classes/Spectie/Configuration.html +175 -0
  21. data/rdoc/classes/Spectie/Configuration/ForScenarios.html +111 -0
  22. data/rdoc/classes/Spectie/Configuration/Selenium.html +220 -0
  23. data/rdoc/classes/Spectie/Main.html +161 -0
  24. data/rdoc/classes/Spectie/RailsStoryExampleGroup.html +118 -0
  25. data/rdoc/classes/Spectie/SeleniumStoryExampleGroup.html +119 -0
  26. data/rdoc/classes/Spectie/StoryExampleGroupMethods.html +254 -0
  27. data/rdoc/created.rid +1 -0
  28. data/rdoc/files/README_rdoc.html +266 -0
  29. data/rdoc/files/lib/spectie/configuration_rb.html +101 -0
  30. data/rdoc/files/lib/spectie/main_rb.html +108 -0
  31. data/rdoc/files/lib/spectie/rails_rb.html +109 -0
  32. data/rdoc/files/lib/spectie/rails_story_example_group_rb.html +182 -0
  33. data/rdoc/files/lib/spectie/selenium/configuration_rb.html +101 -0
  34. data/rdoc/files/lib/spectie/selenium/story_example_group_rb.html +101 -0
  35. data/rdoc/files/lib/spectie/selenium_rb.html +110 -0
  36. data/rdoc/files/lib/spectie/story_example_group_methods_rb.html +101 -0
  37. data/rdoc/files/lib/spectie_rb.html +110 -0
  38. data/rdoc/fr_class_index.html +34 -0
  39. data/rdoc/fr_file_index.html +36 -0
  40. data/rdoc/fr_method_index.html +38 -0
  41. data/rdoc/index.html +24 -0
  42. data/rdoc/rdoc-style.css +208 -0
  43. data/script/selenium_webapp +45 -0
  44. data/script/spec +10 -0
  45. data/spec/example_run_state_tracking.rb +65 -0
  46. data/spec/selenium_config.rb +11 -0
  47. data/spec/spec_helper.rb +10 -0
  48. data/spec/spectie/rails_helper.rb +29 -0
  49. data/spec/spectie/rails_story_example_group_spec.rb +59 -0
  50. data/spec/spectie/selenium/configuration_spec.rb +91 -0
  51. data/spec/spectie/selenium/spec_helper.rb +16 -0
  52. data/spec/spectie/selenium/story_example_group_spec.rb +132 -0
  53. data/spec/spectie/spec_helper.rb +1 -0
  54. data/spec/spectie/story_example_group_methods_spec.rb +217 -0
  55. data/spec/spectie_spec.rb +46 -0
  56. data/spec/support/rails_app/controllers/application_controller.rb +2 -0
  57. data/tags +19899 -0
  58. metadata +125 -0
@@ -0,0 +1,220 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Spectie::Configuration::Selenium</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Spectie::Configuration::Selenium</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/spectie/selenium/configuration_rb.html">
59
+ lib/spectie/selenium/configuration.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000008">controlled?</a>&nbsp;&nbsp;
90
+ <a href="#M000007">driver_options</a>&nbsp;&nbsp;
91
+ <a href="#M000006">new</a>&nbsp;&nbsp;
92
+ </div>
93
+ </div>
94
+
95
+ </div>
96
+
97
+
98
+ <!-- if includes -->
99
+
100
+ <div id="section">
101
+
102
+
103
+
104
+
105
+
106
+ <div id="attribute-list">
107
+ <h3 class="section-bar">Attributes</h3>
108
+
109
+ <div class="name-list">
110
+ <table>
111
+ <tr class="top-aligned-row context-row">
112
+ <td class="context-item-name">controlled</td>
113
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
114
+ <td class="context-item-desc"></td>
115
+ </tr>
116
+ <tr class="top-aligned-row context-row">
117
+ <td class="context-item-name">driver_options</td>
118
+ <td class="context-item-value">&nbsp;[W]&nbsp;</td>
119
+ <td class="context-item-desc"></td>
120
+ </tr>
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">start_browser_once</td>
123
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
124
+ <td class="context-item-desc"></td>
125
+ </tr>
126
+ </table>
127
+ </div>
128
+ </div>
129
+
130
+
131
+
132
+ <!-- if method_list -->
133
+ <div id="methods">
134
+ <h3 class="section-bar">Public Class methods</h3>
135
+
136
+ <div id="method-M000006" class="method-detail">
137
+ <a name="M000006"></a>
138
+
139
+ <div class="method-heading">
140
+ <a href="#M000006" class="method-signature">
141
+ <span class="method-name">new</span><span class="method-args">()</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ <p><a class="source-toggle" href="#"
147
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
148
+ <div class="method-source-code" id="M000006-source">
149
+ <pre>
150
+ <span class="ruby-comment cmt"># File lib/spectie/selenium/configuration.rb, line 7</span>
151
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
152
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">start_browser_once</span> = <span class="ruby-keyword kw">true</span>
153
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">controlled</span> = <span class="ruby-keyword kw">true</span>
154
+ <span class="ruby-keyword kw">end</span>
155
+ </pre>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+ <h3 class="section-bar">Public Instance methods</h3>
161
+
162
+ <div id="method-M000008" class="method-detail">
163
+ <a name="M000008"></a>
164
+
165
+ <div class="method-heading">
166
+ <a href="#M000008" class="method-signature">
167
+ <span class="method-name">controlled?</span><span class="method-args">()</span>
168
+ </a>
169
+ </div>
170
+
171
+ <div class="method-description">
172
+ <p><a class="source-toggle" href="#"
173
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
174
+ <div class="method-source-code" id="M000008-source">
175
+ <pre>
176
+ <span class="ruby-comment cmt"># File lib/spectie/selenium/configuration.rb, line 16</span>
177
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">controlled?</span>
178
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">controlled</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">true</span>
179
+ <span class="ruby-keyword kw">end</span>
180
+ </pre>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <div id="method-M000007" class="method-detail">
186
+ <a name="M000007"></a>
187
+
188
+ <div class="method-heading">
189
+ <a href="#M000007" class="method-signature">
190
+ <span class="method-name">driver_options</span><span class="method-args">()</span>
191
+ </a>
192
+ </div>
193
+
194
+ <div class="method-description">
195
+ <p><a class="source-toggle" href="#"
196
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
197
+ <div class="method-source-code" id="M000007-source">
198
+ <pre>
199
+ <span class="ruby-comment cmt"># File lib/spectie/selenium/configuration.rb, line 12</span>
200
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">driver_options</span>
201
+ <span class="ruby-ivar">@driver_options</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">raise</span>(<span class="ruby-value str">&quot;No Selenium driver options specified&quot;</span>)
202
+ <span class="ruby-keyword kw">end</span>
203
+ </pre>
204
+ </div>
205
+ </div>
206
+ </div>
207
+
208
+
209
+ </div>
210
+
211
+
212
+ </div>
213
+
214
+
215
+ <div id="validator-badges">
216
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
217
+ </div>
218
+
219
+ </body>
220
+ </html>
@@ -0,0 +1,161 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Spectie::Main</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Spectie::Main</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/spectie/main_rb.html">
59
+ lib/spectie/main.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000003">Feature</a>&nbsp;&nbsp;
84
+ </div>
85
+ </div>
86
+
87
+ </div>
88
+
89
+
90
+ <!-- if includes -->
91
+
92
+ <div id="section">
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <!-- if method_list -->
102
+ <div id="methods">
103
+ <h3 class="section-bar">Public Instance methods</h3>
104
+
105
+ <div id="method-M000003" class="method-detail">
106
+ <a name="M000003"></a>
107
+
108
+ <div class="method-heading">
109
+ <a href="#M000003" class="method-signature">
110
+ <span class="method-name">Feature</span><span class="method-args">(*args, &amp;block)</span>
111
+ </a>
112
+ </div>
113
+
114
+ <div class="method-description">
115
+ <p>
116
+ Creates an example group for the feature.
117
+ </p>
118
+ <pre>
119
+ Feature &quot;User Authentication&quot; do
120
+ Scenario &quot;As a user without an account, I want to create one so that I can log in&quot; do
121
+ Given :i_do_not_have_an_account
122
+ And :i_want_to_log_in
123
+
124
+ When :i_create_an_account
125
+
126
+ Then :i_can_log_in
127
+ end
128
+
129
+ def i_do_not_have_an_account
130
+ # ... codey code ...
131
+ end
132
+
133
+ # ... remaining scenario statements ...
134
+ end
135
+ </pre>
136
+ <p><a class="source-toggle" href="#"
137
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000003-source">
139
+ <pre>
140
+ <span class="ruby-comment cmt"># File lib/spectie/main.rb, line 20</span>
141
+ <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Feature</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
142
+ <span class="ruby-identifier">describe</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
143
+ <span class="ruby-keyword kw">end</span>
144
+ </pre>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+
150
+ </div>
151
+
152
+
153
+ </div>
154
+
155
+
156
+ <div id="validator-badges">
157
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
158
+ </div>
159
+
160
+ </body>
161
+ </html>
@@ -0,0 +1,118 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Spectie::RailsStoryExampleGroup</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Spectie::RailsStoryExampleGroup</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/spectie/rails_story_example_group_rb.html">
59
+ lib/spectie/rails_story_example_group.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ ActionController::IntegrationTest
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+
86
+ </div>
87
+
88
+
89
+ <!-- if includes -->
90
+ <div id="includes">
91
+ <h3 class="section-bar">Included Modules</h3>
92
+
93
+ <div id="includes-list">
94
+ <span class="include-name"><a href="StoryExampleGroupMethods.html">StoryExampleGroupMethods</a></span>
95
+ </div>
96
+ </div>
97
+
98
+ <div id="section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <!-- if method_list -->
108
+
109
+
110
+ </div>
111
+
112
+
113
+ <div id="validator-badges">
114
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
115
+ </div>
116
+
117
+ </body>
118
+ </html>