kharon 0.5.1 → 1.0.0

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.
Files changed (55) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +1 -0
  3. data/.rspec +2 -1
  4. data/Gemfile +1 -10
  5. data/Gemfile.lock +29 -16
  6. data/README.md +135 -26
  7. data/{kharon-0.0.1.gem → dist/kharon-0.0.1.gem} +0 -0
  8. data/{kharon-0.0.2.gem → dist/kharon-0.0.2.gem} +0 -0
  9. data/{kharon-0.0.3.gem → dist/kharon-0.0.3.gem} +0 -0
  10. data/{kharon-0.1.0.gem → dist/kharon-0.1.0.gem} +0 -0
  11. data/{kharon-0.2.0.gem → dist/kharon-0.2.0.gem} +0 -0
  12. data/{kharon-0.3.0.gem → dist/kharon-0.3.0.gem} +0 -0
  13. data/{kharon-0.3.1.gem → dist/kharon-0.3.1.gem} +0 -0
  14. data/{kharon-0.4.0.gem → dist/kharon-0.4.0.gem} +0 -0
  15. data/{kharon-0.5.0.gem → dist/kharon-0.5.0.gem} +0 -0
  16. data/dist/kharon-0.5.1.gem +0 -0
  17. data/doc/Kharon.html +364 -0
  18. data/doc/Kharon/Configuration.html +452 -0
  19. data/doc/Kharon/Errors.html +145 -0
  20. data/doc/Kharon/Errors/Validation.html +436 -0
  21. data/doc/Kharon/Handlers.html +144 -0
  22. data/doc/Kharon/Handlers/Exceptions.html +273 -0
  23. data/doc/Kharon/Handlers/Messages.html +425 -0
  24. data/doc/Kharon/Helpers.html +277 -0
  25. data/doc/Kharon/Validator.html +1962 -0
  26. data/doc/_index.html +187 -0
  27. data/doc/class_list.html +58 -0
  28. data/doc/css/common.css +1 -0
  29. data/doc/css/full_list.css +57 -0
  30. data/doc/css/style.css +339 -0
  31. data/doc/file.README.html +415 -0
  32. data/doc/file.results.html +1578 -0
  33. data/doc/file_list.html +63 -0
  34. data/doc/frames.html +26 -0
  35. data/doc/index.html +415 -0
  36. data/doc/js/app.js +219 -0
  37. data/doc/js/full_list.js +181 -0
  38. data/doc/js/jquery.js +4 -0
  39. data/doc/method_list.html +207 -0
  40. data/doc/top-level-namespace.html +112 -0
  41. data/kharon.gemspec +9 -1
  42. data/lib/kharon.rb +7 -11
  43. data/lib/kharon/errors.rb +7 -0
  44. data/lib/kharon/errors/validation.rb +2 -0
  45. data/lib/kharon/handlers.rb +8 -0
  46. data/lib/kharon/handlers/exceptions.rb +3 -1
  47. data/lib/kharon/handlers/messages.rb +11 -4
  48. data/lib/kharon/validator.rb +17 -5
  49. data/lib/kharon/version.rb +2 -1
  50. data/spec/lib/kharon/handlers/messages_spec.rb +11 -0
  51. data/spec/lib/kharon/validator_spec.rb +6 -0
  52. data/spec/results.html +1506 -0
  53. metadata +140 -20
  54. data/lib/kharon/configuration.rb +0 -28
  55. data/lib/kharon/helpers/validate.rb +0 -15
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!top-level-namespace.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index</a> &raquo;
35
+
36
+
37
+ <span class="title">Top Level Namespace</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Top Level Namespace
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Defined Under Namespace</h2>
85
+ <p class="children">
86
+
87
+
88
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Kharon.html" title="Kharon (module)">Kharon</a></span>
89
+
90
+
91
+
92
+
93
+ </p>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ </div>
104
+
105
+ <div id="footer">
106
+ Generated on Tue Sep 15 10:54:07 2015 by
107
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
+ 0.8.7.6 (ruby-1.9.3).
109
+ </div>
110
+
111
+ </body>
112
+ </html>
@@ -17,5 +17,13 @@ Gem::Specification.new do |specification|
17
17
  specification.test_files = ["spec/spec_helper.rb", "spec/lib/kharon/validator_spec.rb"]
18
18
 
19
19
  specification.required_ruby_version = ">= 1.9.3"
20
- specification.add_runtime_dependency "bson", ">= 2.2.2"
20
+
21
+ specification.add_runtime_dependency "bson", "~> 2.2", ">= 2.2.2"
22
+
23
+ specification.add_development_dependency "yard", "~> 0.8"
24
+ specification.add_development_dependency "redcarpet", "3.3.1"
25
+ specification.add_development_dependency "bundler", "~> 1.8"
26
+ specification.add_development_dependency "rake", "~> 10.0"
27
+ specification.add_development_dependency "rack-test", "~> 0.6.2"
28
+ specification.add_development_dependency "rspec", "~> 3.0", ">= 3.0.0"
21
29
  end
@@ -1,24 +1,20 @@
1
- require "kharon/version"
2
- require "kharon/validator"
3
- require "kharon/helpers/validate"
4
- require "kharon/configuration"
5
-
6
- require "kharon/errors/validation"
1
+ # Main module of the application.
2
+ # @author Vincent Courtois <courtois.vincent@outlook.com>
3
+ module Kharon
7
4
 
8
- require "kharon/handlers/exceptions"
9
- require "kharon/handlers/messages"
5
+ [:Validator, :Version, :Errors, :Handlers, :Helpers].each { |classname| autoload(classname, "kharon/#{classname.downcase}") }
10
6
 
11
- module Kharon
7
+ @@use_exceptions = true
12
8
 
13
9
  # Configuration method used to tell the module if it uses exceptions or stores error messages.
14
10
  # @param [Boolean] use TRUE if you want to use exceptions, FALSE else.
15
11
  def self.use_exceptions(use = true)
16
- Kharon::Configuration.instance.use_exceptions(use)
12
+ @@use_exceptions = use
17
13
  end
18
14
 
19
15
  # Returns the current error handler, defined by if you use exceptions or not.
20
16
  # @return [Object] an instance of Kharon::Handlers::Exceptions if you use exceptions, an instance of Kharon::Handlers::Messages else.
21
17
  def self.errors_handler
22
- Kharon::Configuration.instance.uses_exceptions? ? Kharon::Handlers::Exceptions.instance : Kharon::Handlers::Messages.new
18
+ @@use_exceptions ? Kharon::Handlers::Exceptions.instance : Kharon::Handlers::Messages.new
23
19
  end
24
20
  end
@@ -0,0 +1,7 @@
1
+ module Kharon
2
+ # This module contains the class representing custom errors raised whithin the application.
3
+ # @author Vincent Courtois <courtois.vincent@outlook.com>
4
+ module Errors
5
+ autoload(:Validation, File.join(File.dirname(__FILE__), "errors/validation"))
6
+ end
7
+ end
@@ -1,3 +1,5 @@
1
+ require "json"
2
+
1
3
  module Kharon
2
4
  module Errors
3
5
 
@@ -0,0 +1,8 @@
1
+ module Kharon
2
+ # This module contains the error handlers available in the application.
3
+ # @author Vincent Courtois <courtois.vincent@outlook.com>
4
+ module Handlers
5
+ autoload(:Exceptions, File.join(File.dirname(__FILE__), "handlers/exceptions"))
6
+ autoload(:Messages, File.join(File.dirname(__FILE__), "handlers/messages"))
7
+ end
8
+ end
@@ -1,3 +1,5 @@
1
+ require "singleton"
2
+
1
3
  module Kharon
2
4
  module Handlers
3
5
 
@@ -8,7 +10,7 @@ module Kharon
8
10
 
9
11
  # Method used to report an error by raising the correct type of exception.
10
12
  # @param [Hash] error_hash a Hash describing the error.
11
- # @raises [Kharon::Errors::Validation] the exception raised when an error is encountered.
13
+ # @raise [Kharon::Errors::Validation] the exception raised when an error is encountered.
12
14
  def report_error(error_hash)
13
15
  raise Kharon::Errors::Validation.new(error_hash)
14
16
  end
@@ -5,17 +5,24 @@ module Kharon
5
5
  # @author Vincent Courtois <courtois.vincent@outlook.com>
6
6
  class Messages
7
7
 
8
- # @!attribute [rw] errors the errors stored if encountered during validation process.
9
- # @return [Array] an array of hashes, each Hash being the description of an error.
10
- attr_accessor :errors
8
+ # Constructor of the class, initializing the errors array.
9
+ def initialize
10
+ @errors = Array.new
11
+ end
11
12
 
12
13
  # Method used to report an error by storing it in an array.
13
14
  # @param [Hash] error_hash a Hash describing the error.
14
15
  # @return [Kharon::Handlers::Messages] the errors handler after insertion, so several calls can be chained.
15
16
  def report_error(error_hash)
16
- errors.push(error_hash)
17
+ @errors.push(error_hash)
17
18
  self
18
19
  end
20
+
21
+ # Getter for the errors, cloning it so no error can be added from outside of the report_error method
22
+ # @return [Array] the array of errors.
23
+ def errors
24
+ @errors.clone
25
+ end
19
26
  end
20
27
  end
21
28
  end
@@ -181,8 +181,8 @@ module Kharon
181
181
  # @param [Hash] options the options applied to the initial value.
182
182
  def store_decimal(key, process, options)
183
183
  store_numeric(key, process, options)
184
- if(options.has_key?(:round) and options[:round].kind_of?(Integer))
185
- filtered[key] = filtered[key].round(options[:round]) if filtered.has_key?(key)
184
+ if options.has_key?(:round)
185
+ store_rounded_decimal(key, process, options)
186
186
  elsif(options.has_key?(:floor) and options[:floor] == true)
187
187
  filtered[key] = filtered[key].floor if filtered.has_key?(key)
188
188
  elsif(options.has_key?(:ceil) and options[:ceil] == true)
@@ -190,6 +190,18 @@ module Kharon
190
190
  end
191
191
  end
192
192
 
193
+ # Stores a decimal after rounding it with the convenient number of decimals.
194
+ # @param [Object] key the key associated with the value to store in the filtered datas.
195
+ # @param [Proc] process a process (lambda) to execute on the initial value. Must contain strictly one argument.
196
+ # @param [Hash] options the options applied to the initial value.
197
+ def store_rounded_decimal(key, process, options)
198
+ if options[:round].kind_of?(Integer)
199
+ filtered[key] = filtered[key].round(options[:round]) if filtered.has_key?(key)
200
+ elsif options[:round] == true
201
+ filtered[key] = filtered[key].round if filtered.has_key?(key)
202
+ end
203
+ end
204
+
193
205
  # Stores a hash after checking for the contains? and has_keys options.
194
206
  # @param [Object] key the key associated with the value to store in the filtered datas.
195
207
  # @param [Proc] process a process (lambda) to execute on the initial value. Must contain strictly one argument.
@@ -237,7 +249,7 @@ module Kharon
237
249
 
238
250
  # Syntaxic sugar used to chack several dependencies at once.
239
251
  # @param [Object] key the key needing another key to properly work.
240
- # @param [Object] dependency the key needed by another key for it to properly work.
252
+ # @param [Object] dependencies the keys needed by another key for it to properly work.
241
253
  # @raise [ArgumentError] if the required dependencies are not present.
242
254
  # @see self#check_dependency the associated singular method.
243
255
  def dependencies(key, dependencies)
@@ -294,7 +306,7 @@ module Kharon
294
306
 
295
307
  # Checks if the value associated with the given key has the given required values.
296
308
  # @param [Object] key the key associated with the value to check.
297
- # @param [Array] required_keys the values that the initial Enumerable typed value should contain.
309
+ # @param [Array] required_values the values that the initial Enumerable typed value should contain.
298
310
  # @raise [ArgumentError] if the initial value has not each and every one of the given values.
299
311
  def contains?(key, values, required_values)
300
312
  raise_error(type: "contains.values", required: required_values, key: key) if (values & required_values) != required_values
@@ -384,7 +396,7 @@ module Kharon
384
396
 
385
397
  # Raises an error giving a message to display.
386
398
  # @param [String] message the the message to display with the exception.
387
- # @raises ArgumentError an error to stop the execution when this method is invoked.
399
+ # @raise ArgumentError an error to stop the execution when this method is invoked.
388
400
  def raise_error(message)
389
401
  handler.report_error(message)
390
402
  end
@@ -1,3 +1,4 @@
1
1
  module Kharon
2
- VERSION = "0.5.1"
2
+ # Current version of the application.
3
+ VERSION = "1.0.0"
3
4
  end
@@ -0,0 +1,11 @@
1
+ require "spec_helper"
2
+
3
+ describe "Handlers::Messages" do
4
+ it "can correctly store several errors" do
5
+ handler = Kharon::Handlers::Messages.new
6
+ handler.report_error({key: "value1"})
7
+ handler.report_error({key: "value2"})
8
+
9
+ expect(handler.errors.count).to be(2)
10
+ end
11
+ end
@@ -283,6 +283,12 @@ describe "Validator" do
283
283
  expect(validator.filtered).to eq({is_a_double: 1.0236})
284
284
  end
285
285
 
286
+ it "rounds the number when the option is passed as a boolean" do
287
+ validator = Kharon::Validator.new({is_a_double: 1.02363265})
288
+ validator.numeric(:is_a_double, round: true)
289
+ expect(validator.filtered).to eq({is_a_double: 1})
290
+ end
291
+
286
292
  it "doesn't round the number if passed with another type" do
287
293
  validator = Kharon::Validator.new({is_a_double: "1.02363265"})
288
294
  validator.numeric(:is_a_double, round: "anything here")
@@ -0,0 +1,1506 @@
1
+ <!DOCTYPE html>
2
+ <html lang='en'>
3
+ <head>
4
+ <title>RSpec results</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <meta http-equiv="Expires" content="-1" />
7
+ <meta http-equiv="Pragma" content="no-cache" />
8
+ <style type="text/css">
9
+ body {
10
+ margin: 0;
11
+ padding: 0;
12
+ background: #fff;
13
+ font-size: 80%;
14
+ }
15
+ </style>
16
+ <script type="text/javascript">
17
+ // <![CDATA[
18
+
19
+ function addClass(element_id, classname) {
20
+ document.getElementById(element_id).className += (" " + classname);
21
+ }
22
+
23
+ function removeClass(element_id, classname) {
24
+ var elem = document.getElementById(element_id);
25
+ var classlist = elem.className.replace(classname,'');
26
+ elem.className = classlist;
27
+ }
28
+
29
+ function moveProgressBar(percentDone) {
30
+ document.getElementById("rspec-header").style.width = percentDone +"%";
31
+ }
32
+
33
+ function makeRed(element_id) {
34
+ removeClass(element_id, 'passed');
35
+ removeClass(element_id, 'not_implemented');
36
+ addClass(element_id,'failed');
37
+ }
38
+
39
+ function makeYellow(element_id) {
40
+ var elem = document.getElementById(element_id);
41
+ if (elem.className.indexOf("failed") == -1) { // class doesn't includes failed
42
+ if (elem.className.indexOf("not_implemented") == -1) { // class doesn't include not_implemented
43
+ removeClass(element_id, 'passed');
44
+ addClass(element_id,'not_implemented');
45
+ }
46
+ }
47
+ }
48
+
49
+ function apply_filters() {
50
+ var passed_filter = document.getElementById('passed_checkbox').checked;
51
+ var failed_filter = document.getElementById('failed_checkbox').checked;
52
+ var pending_filter = document.getElementById('pending_checkbox').checked;
53
+
54
+ assign_display_style("example passed", passed_filter);
55
+ assign_display_style("example failed", failed_filter);
56
+ assign_display_style("example not_implemented", pending_filter);
57
+
58
+ assign_display_style_for_group("example_group passed", passed_filter);
59
+ assign_display_style_for_group("example_group not_implemented", pending_filter, pending_filter || passed_filter);
60
+ assign_display_style_for_group("example_group failed", failed_filter, failed_filter || pending_filter || passed_filter);
61
+ }
62
+
63
+ function get_display_style(display_flag) {
64
+ var style_mode = 'none';
65
+ if (display_flag == true) {
66
+ style_mode = 'block';
67
+ }
68
+ return style_mode;
69
+ }
70
+
71
+ function assign_display_style(classname, display_flag) {
72
+ var style_mode = get_display_style(display_flag);
73
+ var elems = document.getElementsByClassName(classname)
74
+ for (var i=0; i<elems.length;i++) {
75
+ elems[i].style.display = style_mode;
76
+ }
77
+ }
78
+
79
+ function assign_display_style_for_group(classname, display_flag, subgroup_flag) {
80
+ var display_style_mode = get_display_style(display_flag);
81
+ var subgroup_style_mode = get_display_style(subgroup_flag);
82
+ var elems = document.getElementsByClassName(classname)
83
+ for (var i=0; i<elems.length;i++) {
84
+ var style_mode = display_style_mode;
85
+ if ((display_flag != subgroup_flag) && (elems[i].getElementsByTagName('dt')[0].innerHTML.indexOf(", ") != -1)) {
86
+ elems[i].style.display = subgroup_style_mode;
87
+ } else {
88
+ elems[i].style.display = display_style_mode;
89
+ }
90
+ }
91
+ }
92
+
93
+ // ]]>
94
+ </script>
95
+ <style type="text/css">
96
+ #rspec-header {
97
+ background: #65C400; color: #fff; height: 4em;
98
+ }
99
+
100
+ .rspec-report h1 {
101
+ margin: 0px 10px 0px 10px;
102
+ padding: 10px;
103
+ font-family: "Lucida Grande", Helvetica, sans-serif;
104
+ font-size: 1.8em;
105
+ position: absolute;
106
+ }
107
+
108
+ #label {
109
+ float:left;
110
+ }
111
+
112
+ #display-filters {
113
+ float:left;
114
+ padding: 28px 0 0 40%;
115
+ font-family: "Lucida Grande", Helvetica, sans-serif;
116
+ }
117
+
118
+ #summary {
119
+ float:right;
120
+ padding: 5px 10px;
121
+ font-family: "Lucida Grande", Helvetica, sans-serif;
122
+ text-align: right;
123
+ }
124
+
125
+ #summary p {
126
+ margin: 0 0 0 2px;
127
+ }
128
+
129
+ #summary #totals {
130
+ font-size: 1.2em;
131
+ }
132
+
133
+ .example_group {
134
+ margin: 0 10px 5px;
135
+ background: #fff;
136
+ }
137
+
138
+ dl {
139
+ margin: 0; padding: 0 0 5px;
140
+ font: normal 11px "Lucida Grande", Helvetica, sans-serif;
141
+ }
142
+
143
+ dt {
144
+ padding: 3px;
145
+ background: #65C400;
146
+ color: #fff;
147
+ font-weight: bold;
148
+ }
149
+
150
+ dd {
151
+ margin: 5px 0 5px 5px;
152
+ padding: 3px 3px 3px 18px;
153
+ }
154
+
155
+ dd .duration {
156
+ padding-left: 5px;
157
+ text-align: right;
158
+ right: 0px;
159
+ float:right;
160
+ }
161
+
162
+ dd.example.passed {
163
+ border-left: 5px solid #65C400;
164
+ border-bottom: 1px solid #65C400;
165
+ background: #DBFFB4; color: #3D7700;
166
+ }
167
+
168
+ dd.example.not_implemented {
169
+ border-left: 5px solid #FAF834;
170
+ border-bottom: 1px solid #FAF834;
171
+ background: #FCFB98; color: #131313;
172
+ }
173
+
174
+ dd.example.pending_fixed {
175
+ border-left: 5px solid #0000C2;
176
+ border-bottom: 1px solid #0000C2;
177
+ color: #0000C2; background: #D3FBFF;
178
+ }
179
+
180
+ dd.example.failed {
181
+ border-left: 5px solid #C20000;
182
+ border-bottom: 1px solid #C20000;
183
+ color: #C20000; background: #FFFBD3;
184
+ }
185
+
186
+
187
+ dt.not_implemented {
188
+ color: #000000; background: #FAF834;
189
+ }
190
+
191
+ dt.pending_fixed {
192
+ color: #FFFFFF; background: #C40D0D;
193
+ }
194
+
195
+ dt.failed {
196
+ color: #FFFFFF; background: #C40D0D;
197
+ }
198
+
199
+
200
+ #rspec-header.not_implemented {
201
+ color: #000000; background: #FAF834;
202
+ }
203
+
204
+ #rspec-header.pending_fixed {
205
+ color: #FFFFFF; background: #C40D0D;
206
+ }
207
+
208
+ #rspec-header.failed {
209
+ color: #FFFFFF; background: #C40D0D;
210
+ }
211
+
212
+
213
+ .backtrace {
214
+ color: #000;
215
+ font-size: 12px;
216
+ }
217
+
218
+ a {
219
+ color: #BE5C00;
220
+ }
221
+
222
+ /* Ruby code, style similar to vibrant ink */
223
+ .ruby {
224
+ font-size: 12px;
225
+ font-family: monospace;
226
+ color: white;
227
+ background-color: black;
228
+ padding: 0.1em 0 0.2em 0;
229
+ }
230
+
231
+ .ruby .keyword { color: #FF6600; }
232
+ .ruby .constant { color: #339999; }
233
+ .ruby .attribute { color: white; }
234
+ .ruby .global { color: white; }
235
+ .ruby .module { color: white; }
236
+ .ruby .class { color: white; }
237
+ .ruby .string { color: #66FF00; }
238
+ .ruby .ident { color: white; }
239
+ .ruby .method { color: #FFCC00; }
240
+ .ruby .number { color: white; }
241
+ .ruby .char { color: white; }
242
+ .ruby .comment { color: #9933CC; }
243
+ .ruby .symbol { color: white; }
244
+ .ruby .regex { color: #44B4CC; }
245
+ .ruby .punct { color: white; }
246
+ .ruby .escape { color: white; }
247
+ .ruby .interp { color: white; }
248
+ .ruby .expr { color: white; }
249
+
250
+ .ruby .offending { background-color: gray; }
251
+ .ruby .linenum {
252
+ width: 75px;
253
+ padding: 0.1em 1em 0.2em 0;
254
+ color: #000000;
255
+ background-color: #FFFBD3;
256
+ }
257
+
258
+ </style>
259
+ </head>
260
+ <body>
261
+ <div class="rspec-report">
262
+
263
+ <div id="rspec-header">
264
+ <div id="label">
265
+ <h1>RSpec Code Examples</h1>
266
+ </div>
267
+
268
+ <div id="display-filters">
269
+ <input id="passed_checkbox" name="passed_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="1" /> <label for="passed_checkbox">Passed</label>
270
+ <input id="failed_checkbox" name="failed_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="2" /> <label for="failed_checkbox">Failed</label>
271
+ <input id="pending_checkbox" name="pending_checkbox" type="checkbox" checked="checked" onchange="apply_filters()" value="3" /> <label for="pending_checkbox">Pending</label>
272
+ </div>
273
+
274
+ <div id="summary">
275
+ <p id="totals">&#160;</p>
276
+ <p id="duration">&#160;</p>
277
+ </div>
278
+ </div>
279
+
280
+
281
+ <div class="results">
282
+ <div id="div_group_1" class="example_group passed">
283
+ <dl style="margin-left: 0px;">
284
+ <dt id="example_group_1" class="passed">Errors::Validation</dt>
285
+ <script type="text/javascript">moveProgressBar('0.3');</script>
286
+ <dd class="example passed"><span class="passed_spec_name">correctly stores the error hash</span><span class='duration'>0.00220s</span></dd>
287
+ <script type="text/javascript">moveProgressBar('0.7');</script>
288
+ <dd class="example passed"><span class="passed_spec_name">correctly return the JSON equivalent of the error hash as message</span><span class='duration'>0.00017s</span></dd>
289
+ </dl>
290
+ </div>
291
+ <div id="div_group_2" class="example_group passed">
292
+ <dl style="margin-left: 0px;">
293
+ <dt id="example_group_2" class="passed">Handlers::Exceptions</dt>
294
+ <script type="text/javascript">moveProgressBar('1.0');</script>
295
+ <dd class="example passed"><span class="passed_spec_name">always returns the same instance</span><span class='duration'>0.01740s</span></dd>
296
+ </dl>
297
+ </div>
298
+ <div id="div_group_3" class="example_group passed">
299
+ <dl style="margin-left: 15px;">
300
+ <dt id="example_group_3" class="passed">#report_error</dt>
301
+ <script type="text/javascript">moveProgressBar('1.4');</script>
302
+ <dd class="example passed"><span class="passed_spec_name">raises an error of the right type</span><span class='duration'>0.00114s</span></dd>
303
+ </dl>
304
+ </div>
305
+ <div id="div_group_4" class="example_group passed">
306
+ <dl style="margin-left: 0px;">
307
+ <dt id="example_group_4" class="passed">Handlers::Messages</dt>
308
+ <script type="text/javascript">moveProgressBar('1.7');</script>
309
+ <dd class="example passed"><span class="passed_spec_name">can correctly store several errors</span><span class='duration'>0.00051s</span></dd>
310
+ </dl>
311
+ </div>
312
+ <div id="div_group_5" class="example_group passed">
313
+ <dl style="margin-left: 0px;">
314
+ <dt id="example_group_5" class="passed">Validator</dt>
315
+ </dl>
316
+ </div>
317
+ <div id="div_group_6" class="example_group passed">
318
+ <dl style="margin-left: 15px;">
319
+ <dt id="example_group_6" class="passed">integer</dt>
320
+ <script type="text/javascript">moveProgressBar('2.1');</script>
321
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an integer</span><span class='duration'>0.00142s</span></dd>
322
+ <script type="text/javascript">moveProgressBar('2.4');</script>
323
+ <dd class="example passed"><span class="passed_spec_name">fails when given a float</span><span class='duration'>0.00016s</span></dd>
324
+ <script type="text/javascript">moveProgressBar('2.8');</script>
325
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a numeric</span><span class='duration'>0.00013s</span></dd>
326
+ </dl>
327
+ </div>
328
+ <div id="div_group_7" class="example_group passed">
329
+ <dl style="margin-left: 30px;">
330
+ <dt id="example_group_7" class="passed">options</dt>
331
+ </dl>
332
+ </div>
333
+ <div id="div_group_8" class="example_group passed">
334
+ <dl style="margin-left: 45px;">
335
+ <dt id="example_group_8" class="passed">:rename</dt>
336
+ <script type="text/javascript">moveProgressBar('3.1');</script>
337
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00008s</span></dd>
338
+ <script type="text/javascript">moveProgressBar('3.5');</script>
339
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00012s</span></dd>
340
+ </dl>
341
+ </div>
342
+ <div id="div_group_9" class="example_group passed">
343
+ <dl style="margin-left: 45px;">
344
+ <dt id="example_group_9" class="passed">:dependency</dt>
345
+ <script type="text/javascript">moveProgressBar('3.9');</script>
346
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
347
+ <script type="text/javascript">moveProgressBar('4.2');</script>
348
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00011s</span></dd>
349
+ </dl>
350
+ </div>
351
+ <div id="div_group_10" class="example_group passed">
352
+ <dl style="margin-left: 45px;">
353
+ <dt id="example_group_10" class="passed">:dependencies</dt>
354
+ <script type="text/javascript">moveProgressBar('4.6');</script>
355
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
356
+ <script type="text/javascript">moveProgressBar('4.9');</script>
357
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00013s</span></dd>
358
+ </dl>
359
+ </div>
360
+ <div id="div_group_11" class="example_group passed">
361
+ <dl style="margin-left: 45px;">
362
+ <dt id="example_group_11" class="passed">:required</dt>
363
+ <script type="text/javascript">moveProgressBar('5.3');</script>
364
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00186s</span></dd>
365
+ <script type="text/javascript">moveProgressBar('5.6');</script>
366
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00019s</span></dd>
367
+ <script type="text/javascript">moveProgressBar('6.0');</script>
368
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00013s</span></dd>
369
+ </dl>
370
+ </div>
371
+ <div id="div_group_12" class="example_group passed">
372
+ <dl style="margin-left: 45px;">
373
+ <dt id="example_group_12" class="passed">:in</dt>
374
+ <script type="text/javascript">moveProgressBar('6.3');</script>
375
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00008s</span></dd>
376
+ <script type="text/javascript">moveProgressBar('6.7');</script>
377
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00008s</span></dd>
378
+ <script type="text/javascript">moveProgressBar('7.0');</script>
379
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00014s</span></dd>
380
+ </dl>
381
+ </div>
382
+ <div id="div_group_13" class="example_group passed">
383
+ <dl style="margin-left: 45px;">
384
+ <dt id="example_group_13" class="passed">:equals</dt>
385
+ <script type="text/javascript">moveProgressBar('7.4');</script>
386
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00008s</span></dd>
387
+ <script type="text/javascript">moveProgressBar('7.8');</script>
388
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00020s</span></dd>
389
+ </dl>
390
+ </div>
391
+ <div id="div_group_14" class="example_group passed">
392
+ <dl style="margin-left: 45px;">
393
+ <dt id="example_group_14" class="passed">:extract</dt>
394
+ <script type="text/javascript">moveProgressBar('8.1');</script>
395
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00008s</span></dd>
396
+ <script type="text/javascript">moveProgressBar('8.5');</script>
397
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00008s</span></dd>
398
+ </dl>
399
+ </div>
400
+ <div id="div_group_15" class="example_group passed">
401
+ <dl style="margin-left: 45px;">
402
+ <dt id="example_group_15" class="passed">:cast</dt>
403
+ <script type="text/javascript">moveProgressBar('8.8');</script>
404
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00008s</span></dd>
405
+ <script type="text/javascript">moveProgressBar('9.2');</script>
406
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
407
+ </dl>
408
+ </div>
409
+ <div id="div_group_16" class="example_group passed">
410
+ <dl style="margin-left: 45px;">
411
+ <dt id="example_group_16" class="passed">:min</dt>
412
+ <script type="text/javascript">moveProgressBar('9.5');</script>
413
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is strictly greater than it</span><span class='duration'>0.00008s</span></dd>
414
+ <script type="text/javascript">moveProgressBar('9.9');</script>
415
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
416
+ <script type="text/javascript">moveProgressBar('10.2');</script>
417
+ <dd class="example passed"><span class="passed_spec_name">fails when a min option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
418
+ </dl>
419
+ </div>
420
+ <div id="div_group_17" class="example_group passed">
421
+ <dl style="margin-left: 45px;">
422
+ <dt id="example_group_17" class="passed">:max</dt>
423
+ <script type="text/javascript">moveProgressBar('10.6');</script>
424
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.00007s</span></dd>
425
+ <script type="text/javascript">moveProgressBar('10.9');</script>
426
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
427
+ <script type="text/javascript">moveProgressBar('11.3');</script>
428
+ <dd class="example passed"><span class="passed_spec_name">fails when a max option is given, but not respected</span><span class='duration'>0.00012s</span></dd>
429
+ </dl>
430
+ </div>
431
+ <div id="div_group_18" class="example_group passed">
432
+ <dl style="margin-left: 45px;">
433
+ <dt id="example_group_18" class="passed">:between</dt>
434
+ <script type="text/javascript">moveProgressBar('11.7');</script>
435
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.00007s</span></dd>
436
+ <script type="text/javascript">moveProgressBar('12.0');</script>
437
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.00012s</span></dd>
438
+ <script type="text/javascript">moveProgressBar('12.4');</script>
439
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.00012s</span></dd>
440
+ <script type="text/javascript">moveProgressBar('12.7');</script>
441
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the inferior limit</span><span class='duration'>0.00012s</span></dd>
442
+ <script type="text/javascript">moveProgressBar('13.1');</script>
443
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.00008s</span></dd>
444
+ </dl>
445
+ </div>
446
+ <div id="div_group_19" class="example_group passed">
447
+ <dl style="margin-left: 15px;">
448
+ <dt id="example_group_19" class="passed">numeric</dt>
449
+ <script type="text/javascript">moveProgressBar('13.4');</script>
450
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an integer</span><span class='duration'>0.00007s</span></dd>
451
+ <script type="text/javascript">moveProgressBar('13.8');</script>
452
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an decimal number with a dot</span><span class='duration'>0.00007s</span></dd>
453
+ <script type="text/javascript">moveProgressBar('14.1');</script>
454
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an decimal number with a comma</span><span class='duration'>0.00007s</span></dd>
455
+ <script type="text/javascript">moveProgressBar('14.5');</script>
456
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a numeric</span><span class='duration'>0.00010s</span></dd>
457
+ </dl>
458
+ </div>
459
+ <div id="div_group_20" class="example_group passed">
460
+ <dl style="margin-left: 30px;">
461
+ <dt id="example_group_20" class="passed">options</dt>
462
+ </dl>
463
+ </div>
464
+ <div id="div_group_21" class="example_group passed">
465
+ <dl style="margin-left: 45px;">
466
+ <dt id="example_group_21" class="passed">:rename</dt>
467
+ <script type="text/javascript">moveProgressBar('14.8');</script>
468
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
469
+ <script type="text/javascript">moveProgressBar('15.2');</script>
470
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00011s</span></dd>
471
+ </dl>
472
+ </div>
473
+ <div id="div_group_22" class="example_group passed">
474
+ <dl style="margin-left: 45px;">
475
+ <dt id="example_group_22" class="passed">:dependency</dt>
476
+ <script type="text/javascript">moveProgressBar('15.6');</script>
477
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
478
+ <script type="text/javascript">moveProgressBar('15.9');</script>
479
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
480
+ </dl>
481
+ </div>
482
+ <div id="div_group_23" class="example_group passed">
483
+ <dl style="margin-left: 45px;">
484
+ <dt id="example_group_23" class="passed">:dependencies</dt>
485
+ <script type="text/javascript">moveProgressBar('16.3');</script>
486
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00008s</span></dd>
487
+ <script type="text/javascript">moveProgressBar('16.6');</script>
488
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
489
+ </dl>
490
+ </div>
491
+ <div id="div_group_24" class="example_group passed">
492
+ <dl style="margin-left: 45px;">
493
+ <dt id="example_group_24" class="passed">:required</dt>
494
+ <script type="text/javascript">moveProgressBar('17.0');</script>
495
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
496
+ <script type="text/javascript">moveProgressBar('17.3');</script>
497
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
498
+ <script type="text/javascript">moveProgressBar('17.7');</script>
499
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00014s</span></dd>
500
+ </dl>
501
+ </div>
502
+ <div id="div_group_25" class="example_group passed">
503
+ <dl style="margin-left: 45px;">
504
+ <dt id="example_group_25" class="passed">:in</dt>
505
+ <script type="text/javascript">moveProgressBar('18.0');</script>
506
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00008s</span></dd>
507
+ <script type="text/javascript">moveProgressBar('18.4');</script>
508
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
509
+ <script type="text/javascript">moveProgressBar('18.7');</script>
510
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00011s</span></dd>
511
+ </dl>
512
+ </div>
513
+ <div id="div_group_26" class="example_group passed">
514
+ <dl style="margin-left: 45px;">
515
+ <dt id="example_group_26" class="passed">:equals</dt>
516
+ <script type="text/javascript">moveProgressBar('19.1');</script>
517
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
518
+ <script type="text/javascript">moveProgressBar('19.5');</script>
519
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00015s</span></dd>
520
+ </dl>
521
+ </div>
522
+ <div id="div_group_27" class="example_group passed">
523
+ <dl style="margin-left: 45px;">
524
+ <dt id="example_group_27" class="passed">:extract</dt>
525
+ <script type="text/javascript">moveProgressBar('19.8');</script>
526
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
527
+ <script type="text/javascript">moveProgressBar('20.2');</script>
528
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
529
+ </dl>
530
+ </div>
531
+ <div id="div_group_28" class="example_group passed">
532
+ <dl style="margin-left: 45px;">
533
+ <dt id="example_group_28" class="passed">:cast</dt>
534
+ <script type="text/javascript">moveProgressBar('20.5');</script>
535
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
536
+ <script type="text/javascript">moveProgressBar('20.9');</script>
537
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
538
+ </dl>
539
+ </div>
540
+ <div id="div_group_29" class="example_group passed">
541
+ <dl style="margin-left: 45px;">
542
+ <dt id="example_group_29" class="passed">:min</dt>
543
+ <script type="text/javascript">moveProgressBar('21.2');</script>
544
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is strictly greater than it</span><span class='duration'>0.00008s</span></dd>
545
+ <script type="text/javascript">moveProgressBar('21.6');</script>
546
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a min option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
547
+ <script type="text/javascript">moveProgressBar('21.9');</script>
548
+ <dd class="example passed"><span class="passed_spec_name">fails when a min option is given, but not respected</span><span class='duration'>0.00011s</span></dd>
549
+ </dl>
550
+ </div>
551
+ <div id="div_group_30" class="example_group passed">
552
+ <dl style="margin-left: 45px;">
553
+ <dt id="example_group_30" class="passed">:max</dt>
554
+ <script type="text/javascript">moveProgressBar('22.3');</script>
555
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is strictly lesser than it</span><span class='duration'>0.00007s</span></dd>
556
+ <script type="text/javascript">moveProgressBar('22.6');</script>
557
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a max option is given, and the value is equal to it</span><span class='duration'>0.00008s</span></dd>
558
+ <script type="text/javascript">moveProgressBar('23.0');</script>
559
+ <dd class="example passed"><span class="passed_spec_name">fails when a max option is given, but not respected</span><span class='duration'>0.00011s</span></dd>
560
+ </dl>
561
+ </div>
562
+ <div id="div_group_31" class="example_group passed">
563
+ <dl style="margin-left: 45px;">
564
+ <dt id="example_group_31" class="passed">:between</dt>
565
+ <script type="text/javascript">moveProgressBar('23.4');</script>
566
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a between option is given, and respected</span><span class='duration'>0.00007s</span></dd>
567
+ <script type="text/javascript">moveProgressBar('23.7');</script>
568
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly lesser</span><span class='duration'>0.00011s</span></dd>
569
+ <script type="text/javascript">moveProgressBar('24.1');</script>
570
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is strictly greater</span><span class='duration'>0.00011s</span></dd>
571
+ <script type="text/javascript">moveProgressBar('24.4');</script>
572
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the inferior limit</span><span class='duration'>0.00008s</span></dd>
573
+ <script type="text/javascript">moveProgressBar('24.8');</script>
574
+ <dd class="example passed"><span class="passed_spec_name">fails when a max between option is given, but the value is equal to the superio limit</span><span class='duration'>0.00011s</span></dd>
575
+ </dl>
576
+ </div>
577
+ <div id="div_group_32" class="example_group passed">
578
+ <dl style="margin-left: 45px;">
579
+ <dt id="example_group_32" class="passed">:round</dt>
580
+ <script type="text/javascript">moveProgressBar('25.1');</script>
581
+ <dd class="example passed"><span class="passed_spec_name">rounds the number when the option is passed as an integer</span><span class='duration'>0.00009s</span></dd>
582
+ <script type="text/javascript">moveProgressBar('25.5');</script>
583
+ <dd class="example passed"><span class="passed_spec_name">rounds the number when the option is passed as a boolean</span><span class='duration'>0.00007s</span></dd>
584
+ <script type="text/javascript">moveProgressBar('25.8');</script>
585
+ <dd class="example passed"><span class="passed_spec_name">doesn't round the number if passed with another type</span><span class='duration'>0.00007s</span></dd>
586
+ </dl>
587
+ </div>
588
+ <div id="div_group_33" class="example_group passed">
589
+ <dl style="margin-left: 45px;">
590
+ <dt id="example_group_33" class="passed">:floor</dt>
591
+ <script type="text/javascript">moveProgressBar('26.2');</script>
592
+ <dd class="example passed"><span class="passed_spec_name">floors the number if passed to true</span><span class='duration'>0.00007s</span></dd>
593
+ <script type="text/javascript">moveProgressBar('26.5');</script>
594
+ <dd class="example passed"><span class="passed_spec_name">doesn't floor the number if passed to false</span><span class='duration'>0.00011s</span></dd>
595
+ </dl>
596
+ </div>
597
+ <div id="div_group_34" class="example_group passed">
598
+ <dl style="margin-left: 45px;">
599
+ <dt id="example_group_34" class="passed">:ceil</dt>
600
+ <script type="text/javascript">moveProgressBar('26.9');</script>
601
+ <dd class="example passed"><span class="passed_spec_name">ceils the number if passed to true</span><span class='duration'>0.00007s</span></dd>
602
+ <script type="text/javascript">moveProgressBar('27.3');</script>
603
+ <dd class="example passed"><span class="passed_spec_name">doesn't ceil the number if passed to false</span><span class='duration'>0.00007s</span></dd>
604
+ </dl>
605
+ </div>
606
+ <div id="div_group_35" class="example_group passed">
607
+ <dl style="margin-left: 15px;">
608
+ <dt id="example_group_35" class="passed">text</dt>
609
+ <script type="text/javascript">moveProgressBar('27.6');</script>
610
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of String</span><span class='duration'>0.00006s</span></dd>
611
+ <script type="text/javascript">moveProgressBar('28.0');</script>
612
+ <dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of String</span><span class='duration'>0.00010s</span></dd>
613
+ </dl>
614
+ </div>
615
+ <div id="div_group_36" class="example_group passed">
616
+ <dl style="margin-left: 30px;">
617
+ <dt id="example_group_36" class="passed">options</dt>
618
+ </dl>
619
+ </div>
620
+ <div id="div_group_37" class="example_group passed">
621
+ <dl style="margin-left: 45px;">
622
+ <dt id="example_group_37" class="passed">:rename</dt>
623
+ <script type="text/javascript">moveProgressBar('28.3');</script>
624
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
625
+ <script type="text/javascript">moveProgressBar('28.7');</script>
626
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00010s</span></dd>
627
+ </dl>
628
+ </div>
629
+ <div id="div_group_38" class="example_group passed">
630
+ <dl style="margin-left: 45px;">
631
+ <dt id="example_group_38" class="passed">:dependency</dt>
632
+ <script type="text/javascript">moveProgressBar('29.0');</script>
633
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
634
+ <script type="text/javascript">moveProgressBar('29.4');</script>
635
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
636
+ </dl>
637
+ </div>
638
+ <div id="div_group_39" class="example_group passed">
639
+ <dl style="margin-left: 45px;">
640
+ <dt id="example_group_39" class="passed">:dependencies</dt>
641
+ <script type="text/javascript">moveProgressBar('29.7');</script>
642
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00007s</span></dd>
643
+ <script type="text/javascript">moveProgressBar('30.1');</script>
644
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
645
+ </dl>
646
+ </div>
647
+ <div id="div_group_40" class="example_group passed">
648
+ <dl style="margin-left: 45px;">
649
+ <dt id="example_group_40" class="passed">:required</dt>
650
+ <script type="text/javascript">moveProgressBar('30.4');</script>
651
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
652
+ <script type="text/javascript">moveProgressBar('30.8');</script>
653
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
654
+ <script type="text/javascript">moveProgressBar('31.2');</script>
655
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00010s</span></dd>
656
+ </dl>
657
+ </div>
658
+ <div id="div_group_41" class="example_group passed">
659
+ <dl style="margin-left: 45px;">
660
+ <dt id="example_group_41" class="passed">:in</dt>
661
+ <script type="text/javascript">moveProgressBar('31.5');</script>
662
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
663
+ <script type="text/javascript">moveProgressBar('31.9');</script>
664
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
665
+ <script type="text/javascript">moveProgressBar('32.2');</script>
666
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00011s</span></dd>
667
+ </dl>
668
+ </div>
669
+ <div id="div_group_42" class="example_group passed">
670
+ <dl style="margin-left: 45px;">
671
+ <dt id="example_group_42" class="passed">:equals</dt>
672
+ <script type="text/javascript">moveProgressBar('32.6');</script>
673
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
674
+ <script type="text/javascript">moveProgressBar('32.9');</script>
675
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00011s</span></dd>
676
+ </dl>
677
+ </div>
678
+ <div id="div_group_43" class="example_group passed">
679
+ <dl style="margin-left: 45px;">
680
+ <dt id="example_group_43" class="passed">:extract</dt>
681
+ <script type="text/javascript">moveProgressBar('33.3');</script>
682
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00008s</span></dd>
683
+ <script type="text/javascript">moveProgressBar('33.6');</script>
684
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
685
+ </dl>
686
+ </div>
687
+ <div id="div_group_44" class="example_group passed">
688
+ <dl style="margin-left: 45px;">
689
+ <dt id="example_group_44" class="passed">:cast</dt>
690
+ <script type="text/javascript">moveProgressBar('34.0');</script>
691
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00006s</span></dd>
692
+ <script type="text/javascript">moveProgressBar('34.3');</script>
693
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00006s</span></dd>
694
+ </dl>
695
+ </div>
696
+ <div id="div_group_45" class="example_group passed">
697
+ <dl style="margin-left: 45px;">
698
+ <dt id="example_group_45" class="passed">:regex</dt>
699
+ <script type="text/javascript">moveProgressBar('34.7');</script>
700
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the regular expression is respected</span><span class='duration'>0.00008s</span></dd>
701
+ <script type="text/javascript">moveProgressBar('35.1');</script>
702
+ <dd class="example passed"><span class="passed_spec_name">fails when the regular expression is not respected</span><span class='duration'>0.00011s</span></dd>
703
+ </dl>
704
+ </div>
705
+ <div id="div_group_46" class="example_group passed">
706
+ <dl style="margin-left: 15px;">
707
+ <dt id="example_group_46" class="passed">datetime</dt>
708
+ <script type="text/javascript">moveProgressBar('35.4');</script>
709
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a string</span><span class='duration'>0.00557s</span></dd>
710
+ <script type="text/javascript">moveProgressBar('35.8');</script>
711
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid datetime as a DateTime Object</span><span class='duration'>0.00019s</span></dd>
712
+ <script type="text/javascript">moveProgressBar('36.1');</script>
713
+ <dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid datetime</span><span class='duration'>0.00029s</span></dd>
714
+ </dl>
715
+ </div>
716
+ <div id="div_group_47" class="example_group passed">
717
+ <dl style="margin-left: 30px;">
718
+ <dt id="example_group_47" class="passed">options</dt>
719
+ </dl>
720
+ </div>
721
+ <div id="div_group_48" class="example_group passed">
722
+ <dl style="margin-left: 45px;">
723
+ <dt id="example_group_48" class="passed">:rename</dt>
724
+ <script type="text/javascript">moveProgressBar('36.5');</script>
725
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00011s</span></dd>
726
+ <script type="text/javascript">moveProgressBar('36.8');</script>
727
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00015s</span></dd>
728
+ </dl>
729
+ </div>
730
+ <div id="div_group_49" class="example_group passed">
731
+ <dl style="margin-left: 45px;">
732
+ <dt id="example_group_49" class="passed">:dependency</dt>
733
+ <script type="text/javascript">moveProgressBar('37.2');</script>
734
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00011s</span></dd>
735
+ <script type="text/javascript">moveProgressBar('37.5');</script>
736
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00012s</span></dd>
737
+ </dl>
738
+ </div>
739
+ <div id="div_group_50" class="example_group passed">
740
+ <dl style="margin-left: 45px;">
741
+ <dt id="example_group_50" class="passed">:dependencies</dt>
742
+ <script type="text/javascript">moveProgressBar('37.9');</script>
743
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00012s</span></dd>
744
+ <script type="text/javascript">moveProgressBar('38.2');</script>
745
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00012s</span></dd>
746
+ </dl>
747
+ </div>
748
+ <div id="div_group_51" class="example_group passed">
749
+ <dl style="margin-left: 45px;">
750
+ <dt id="example_group_51" class="passed">:required</dt>
751
+ <script type="text/javascript">moveProgressBar('38.6');</script>
752
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
753
+ <script type="text/javascript">moveProgressBar('39.0');</script>
754
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
755
+ <script type="text/javascript">moveProgressBar('39.3');</script>
756
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00013s</span></dd>
757
+ </dl>
758
+ </div>
759
+ <div id="div_group_52" class="example_group passed">
760
+ <dl style="margin-left: 45px;">
761
+ <dt id="example_group_52" class="passed">:in</dt>
762
+ <script type="text/javascript">moveProgressBar('39.7');</script>
763
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00010s</span></dd>
764
+ <script type="text/javascript">moveProgressBar('40.0');</script>
765
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00011s</span></dd>
766
+ <script type="text/javascript">moveProgressBar('40.4');</script>
767
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00015s</span></dd>
768
+ </dl>
769
+ </div>
770
+ <div id="div_group_53" class="example_group passed">
771
+ <dl style="margin-left: 45px;">
772
+ <dt id="example_group_53" class="passed">:equals</dt>
773
+ <script type="text/javascript">moveProgressBar('40.7');</script>
774
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00010s</span></dd>
775
+ <script type="text/javascript">moveProgressBar('41.1');</script>
776
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00015s</span></dd>
777
+ </dl>
778
+ </div>
779
+ <div id="div_group_54" class="example_group passed">
780
+ <dl style="margin-left: 45px;">
781
+ <dt id="example_group_54" class="passed">:extract</dt>
782
+ <script type="text/javascript">moveProgressBar('41.4');</script>
783
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
784
+ <script type="text/javascript">moveProgressBar('41.8');</script>
785
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00011s</span></dd>
786
+ </dl>
787
+ </div>
788
+ <div id="div_group_55" class="example_group passed">
789
+ <dl style="margin-left: 45px;">
790
+ <dt id="example_group_55" class="passed">:cast</dt>
791
+ <script type="text/javascript">moveProgressBar('42.1');</script>
792
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00010s</span></dd>
793
+ <script type="text/javascript">moveProgressBar('42.5');</script>
794
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
795
+ </dl>
796
+ </div>
797
+ <div id="div_group_56" class="example_group passed">
798
+ <dl style="margin-left: 15px;">
799
+ <dt id="example_group_56" class="passed">date</dt>
800
+ <script type="text/javascript">moveProgressBar('42.9');</script>
801
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid date as a string</span><span class='duration'>0.00009s</span></dd>
802
+ <script type="text/javascript">moveProgressBar('43.2');</script>
803
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid date as a Date Object</span><span class='duration'>0.00008s</span></dd>
804
+ <script type="text/javascript">moveProgressBar('43.6');</script>
805
+ <dd class="example passed"><span class="passed_spec_name">fails when given something else than a valid date</span><span class='duration'>0.00014s</span></dd>
806
+ </dl>
807
+ </div>
808
+ <div id="div_group_57" class="example_group passed">
809
+ <dl style="margin-left: 30px;">
810
+ <dt id="example_group_57" class="passed">options</dt>
811
+ </dl>
812
+ </div>
813
+ <div id="div_group_58" class="example_group passed">
814
+ <dl style="margin-left: 45px;">
815
+ <dt id="example_group_58" class="passed">:rename</dt>
816
+ <script type="text/javascript">moveProgressBar('43.9');</script>
817
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00009s</span></dd>
818
+ <script type="text/javascript">moveProgressBar('44.3');</script>
819
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00014s</span></dd>
820
+ </dl>
821
+ </div>
822
+ <div id="div_group_59" class="example_group passed">
823
+ <dl style="margin-left: 45px;">
824
+ <dt id="example_group_59" class="passed">:dependency</dt>
825
+ <script type="text/javascript">moveProgressBar('44.6');</script>
826
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00009s</span></dd>
827
+ <script type="text/javascript">moveProgressBar('45.0');</script>
828
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00012s</span></dd>
829
+ </dl>
830
+ </div>
831
+ <div id="div_group_60" class="example_group passed">
832
+ <dl style="margin-left: 45px;">
833
+ <dt id="example_group_60" class="passed">:dependencies</dt>
834
+ <script type="text/javascript">moveProgressBar('45.3');</script>
835
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00009s</span></dd>
836
+ <script type="text/javascript">moveProgressBar('45.7');</script>
837
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
838
+ </dl>
839
+ </div>
840
+ <div id="div_group_61" class="example_group passed">
841
+ <dl style="margin-left: 45px;">
842
+ <dt id="example_group_61" class="passed">:required</dt>
843
+ <script type="text/javascript">moveProgressBar('46.0');</script>
844
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
845
+ <script type="text/javascript">moveProgressBar('46.4');</script>
846
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
847
+ <script type="text/javascript">moveProgressBar('46.8');</script>
848
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
849
+ </dl>
850
+ </div>
851
+ <div id="div_group_62" class="example_group passed">
852
+ <dl style="margin-left: 45px;">
853
+ <dt id="example_group_62" class="passed">:in</dt>
854
+ <script type="text/javascript">moveProgressBar('47.1');</script>
855
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00009s</span></dd>
856
+ <script type="text/javascript">moveProgressBar('47.5');</script>
857
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00009s</span></dd>
858
+ <script type="text/javascript">moveProgressBar('47.8');</script>
859
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00016s</span></dd>
860
+ </dl>
861
+ </div>
862
+ <div id="div_group_63" class="example_group passed">
863
+ <dl style="margin-left: 45px;">
864
+ <dt id="example_group_63" class="passed">:equals</dt>
865
+ <script type="text/javascript">moveProgressBar('48.2');</script>
866
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00009s</span></dd>
867
+ <script type="text/javascript">moveProgressBar('48.5');</script>
868
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00012s</span></dd>
869
+ </dl>
870
+ </div>
871
+ <div id="div_group_64" class="example_group passed">
872
+ <dl style="margin-left: 45px;">
873
+ <dt id="example_group_64" class="passed">:extract</dt>
874
+ <script type="text/javascript">moveProgressBar('48.9');</script>
875
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00007s</span></dd>
876
+ <script type="text/javascript">moveProgressBar('49.2');</script>
877
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00009s</span></dd>
878
+ </dl>
879
+ </div>
880
+ <div id="div_group_65" class="example_group passed">
881
+ <dl style="margin-left: 45px;">
882
+ <dt id="example_group_65" class="passed">:cast</dt>
883
+ <script type="text/javascript">moveProgressBar('49.6');</script>
884
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00009s</span></dd>
885
+ <script type="text/javascript">moveProgressBar('50.0');</script>
886
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
887
+ </dl>
888
+ </div>
889
+ <div id="div_group_66" class="example_group passed">
890
+ <dl style="margin-left: 15px;">
891
+ <dt id="example_group_66" class="passed">array</dt>
892
+ <script type="text/javascript">moveProgressBar('50.3');</script>
893
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of Array</span><span class='duration'>0.00007s</span></dd>
894
+ <script type="text/javascript">moveProgressBar('50.7');</script>
895
+ <dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of Array</span><span class='duration'>0.00010s</span></dd>
896
+ </dl>
897
+ </div>
898
+ <div id="div_group_67" class="example_group passed">
899
+ <dl style="margin-left: 30px;">
900
+ <dt id="example_group_67" class="passed">options</dt>
901
+ </dl>
902
+ </div>
903
+ <div id="div_group_68" class="example_group passed">
904
+ <dl style="margin-left: 45px;">
905
+ <dt id="example_group_68" class="passed">:rename</dt>
906
+ <script type="text/javascript">moveProgressBar('51.0');</script>
907
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
908
+ <script type="text/javascript">moveProgressBar('51.4');</script>
909
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00010s</span></dd>
910
+ </dl>
911
+ </div>
912
+ <div id="div_group_69" class="example_group passed">
913
+ <dl style="margin-left: 45px;">
914
+ <dt id="example_group_69" class="passed">:dependency</dt>
915
+ <script type="text/javascript">moveProgressBar('51.7');</script>
916
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
917
+ <script type="text/javascript">moveProgressBar('52.1');</script>
918
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
919
+ </dl>
920
+ </div>
921
+ <div id="div_group_70" class="example_group passed">
922
+ <dl style="margin-left: 45px;">
923
+ <dt id="example_group_70" class="passed">:dependencies</dt>
924
+ <script type="text/javascript">moveProgressBar('52.4');</script>
925
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00011s</span></dd>
926
+ <script type="text/javascript">moveProgressBar('52.8');</script>
927
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00011s</span></dd>
928
+ </dl>
929
+ </div>
930
+ <div id="div_group_71" class="example_group passed">
931
+ <dl style="margin-left: 45px;">
932
+ <dt id="example_group_71" class="passed">:required</dt>
933
+ <script type="text/javascript">moveProgressBar('53.1');</script>
934
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
935
+ <script type="text/javascript">moveProgressBar('53.5');</script>
936
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00011s</span></dd>
937
+ <script type="text/javascript">moveProgressBar('53.9');</script>
938
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00010s</span></dd>
939
+ </dl>
940
+ </div>
941
+ <div id="div_group_72" class="example_group passed">
942
+ <dl style="margin-left: 45px;">
943
+ <dt id="example_group_72" class="passed">:in</dt>
944
+ <script type="text/javascript">moveProgressBar('54.2');</script>
945
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00007s</span></dd>
946
+ <script type="text/javascript">moveProgressBar('54.6');</script>
947
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
948
+ <script type="text/javascript">moveProgressBar('54.9');</script>
949
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00011s</span></dd>
950
+ </dl>
951
+ </div>
952
+ <div id="div_group_73" class="example_group passed">
953
+ <dl style="margin-left: 45px;">
954
+ <dt id="example_group_73" class="passed">:equals</dt>
955
+ <script type="text/javascript">moveProgressBar('55.3');</script>
956
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
957
+ <script type="text/javascript">moveProgressBar('55.6');</script>
958
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00010s</span></dd>
959
+ </dl>
960
+ </div>
961
+ <div id="div_group_74" class="example_group passed">
962
+ <dl style="margin-left: 45px;">
963
+ <dt id="example_group_74" class="passed">:extract</dt>
964
+ <script type="text/javascript">moveProgressBar('56.0');</script>
965
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
966
+ <script type="text/javascript">moveProgressBar('56.3');</script>
967
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
968
+ </dl>
969
+ </div>
970
+ <div id="div_group_75" class="example_group passed">
971
+ <dl style="margin-left: 45px;">
972
+ <dt id="example_group_75" class="passed">:cast</dt>
973
+ <script type="text/javascript">moveProgressBar('56.7');</script>
974
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00007s</span></dd>
975
+ <script type="text/javascript">moveProgressBar('57.0');</script>
976
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00007s</span></dd>
977
+ </dl>
978
+ </div>
979
+ <div id="div_group_76" class="example_group passed">
980
+ <dl style="margin-left: 45px;">
981
+ <dt id="example_group_76" class="passed">:contains</dt>
982
+ <script type="text/javascript">moveProgressBar('57.4');</script>
983
+ <dd class="example passed"><span class="passed_spec_name">succeeds if all values are contained</span><span class='duration'>0.00007s</span></dd>
984
+ <script type="text/javascript">moveProgressBar('57.8');</script>
985
+ <dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.00011s</span></dd>
986
+ <script type="text/javascript">moveProgressBar('58.1');</script>
987
+ <dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.00010s</span></dd>
988
+ </dl>
989
+ </div>
990
+ <div id="div_group_77" class="example_group passed">
991
+ <dl style="margin-left: 15px;">
992
+ <dt id="example_group_77" class="passed">hash</dt>
993
+ <script type="text/javascript">moveProgressBar('58.5');</script>
994
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given an instance of Hash</span><span class='duration'>0.00007s</span></dd>
995
+ <script type="text/javascript">moveProgressBar('58.8');</script>
996
+ <dd class="example passed"><span class="passed_spec_name">fails when given something else than an instance of Hash</span><span class='duration'>0.00010s</span></dd>
997
+ </dl>
998
+ </div>
999
+ <div id="div_group_78" class="example_group passed">
1000
+ <dl style="margin-left: 30px;">
1001
+ <dt id="example_group_78" class="passed">options</dt>
1002
+ </dl>
1003
+ </div>
1004
+ <div id="div_group_79" class="example_group passed">
1005
+ <dl style="margin-left: 45px;">
1006
+ <dt id="example_group_79" class="passed">:rename</dt>
1007
+ <script type="text/javascript">moveProgressBar('59.2');</script>
1008
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00008s</span></dd>
1009
+ <script type="text/javascript">moveProgressBar('59.5');</script>
1010
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00010s</span></dd>
1011
+ </dl>
1012
+ </div>
1013
+ <div id="div_group_80" class="example_group passed">
1014
+ <dl style="margin-left: 45px;">
1015
+ <dt id="example_group_80" class="passed">:dependency</dt>
1016
+ <script type="text/javascript">moveProgressBar('59.9');</script>
1017
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00007s</span></dd>
1018
+ <script type="text/javascript">moveProgressBar('60.2');</script>
1019
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
1020
+ </dl>
1021
+ </div>
1022
+ <div id="div_group_81" class="example_group passed">
1023
+ <dl style="margin-left: 45px;">
1024
+ <dt id="example_group_81" class="passed">:dependencies</dt>
1025
+ <script type="text/javascript">moveProgressBar('60.6');</script>
1026
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00007s</span></dd>
1027
+ <script type="text/javascript">moveProgressBar('60.9');</script>
1028
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00010s</span></dd>
1029
+ </dl>
1030
+ </div>
1031
+ <div id="div_group_82" class="example_group passed">
1032
+ <dl style="margin-left: 45px;">
1033
+ <dt id="example_group_82" class="passed">:required</dt>
1034
+ <script type="text/javascript">moveProgressBar('61.3');</script>
1035
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00011s</span></dd>
1036
+ <script type="text/javascript">moveProgressBar('61.7');</script>
1037
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00012s</span></dd>
1038
+ <script type="text/javascript">moveProgressBar('62.0');</script>
1039
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00011s</span></dd>
1040
+ </dl>
1041
+ </div>
1042
+ <div id="div_group_83" class="example_group passed">
1043
+ <dl style="margin-left: 45px;">
1044
+ <dt id="example_group_83" class="passed">:in</dt>
1045
+ <script type="text/javascript">moveProgressBar('62.4');</script>
1046
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00008s</span></dd>
1047
+ <script type="text/javascript">moveProgressBar('62.7');</script>
1048
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00007s</span></dd>
1049
+ <script type="text/javascript">moveProgressBar('63.1');</script>
1050
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00011s</span></dd>
1051
+ </dl>
1052
+ </div>
1053
+ <div id="div_group_84" class="example_group passed">
1054
+ <dl style="margin-left: 45px;">
1055
+ <dt id="example_group_84" class="passed">:equals</dt>
1056
+ <script type="text/javascript">moveProgressBar('63.4');</script>
1057
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00007s</span></dd>
1058
+ <script type="text/javascript">moveProgressBar('63.8');</script>
1059
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00010s</span></dd>
1060
+ </dl>
1061
+ </div>
1062
+ <div id="div_group_85" class="example_group passed">
1063
+ <dl style="margin-left: 45px;">
1064
+ <dt id="example_group_85" class="passed">:extract</dt>
1065
+ <script type="text/javascript">moveProgressBar('64.1');</script>
1066
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00006s</span></dd>
1067
+ <script type="text/javascript">moveProgressBar('64.5');</script>
1068
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
1069
+ </dl>
1070
+ </div>
1071
+ <div id="div_group_86" class="example_group passed">
1072
+ <dl style="margin-left: 45px;">
1073
+ <dt id="example_group_86" class="passed">:cast</dt>
1074
+ <script type="text/javascript">moveProgressBar('64.8');</script>
1075
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00006s</span></dd>
1076
+ <script type="text/javascript">moveProgressBar('65.2');</script>
1077
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00006s</span></dd>
1078
+ </dl>
1079
+ </div>
1080
+ <div id="div_group_87" class="example_group passed">
1081
+ <dl style="margin-left: 45px;">
1082
+ <dt id="example_group_87" class="passed">:contains</dt>
1083
+ <script type="text/javascript">moveProgressBar('65.6');</script>
1084
+ <dd class="example passed"><span class="passed_spec_name">succeeds if all values are contained</span><span class='duration'>0.00007s</span></dd>
1085
+ <script type="text/javascript">moveProgressBar('65.9');</script>
1086
+ <dd class="example passed"><span class="passed_spec_name">fails if only some values are contained</span><span class='duration'>0.00013s</span></dd>
1087
+ <script type="text/javascript">moveProgressBar('66.3');</script>
1088
+ <dd class="example passed"><span class="passed_spec_name">fails if none of the values are contained</span><span class='duration'>0.00010s</span></dd>
1089
+ </dl>
1090
+ </div>
1091
+ <div id="div_group_88" class="example_group passed">
1092
+ <dl style="margin-left: 45px;">
1093
+ <dt id="example_group_88" class="passed">:has_keys</dt>
1094
+ <script type="text/javascript">moveProgressBar('66.6');</script>
1095
+ <dd class="example passed"><span class="passed_spec_name">succeeds if all keys are contained in the hash</span><span class='duration'>0.00007s</span></dd>
1096
+ <script type="text/javascript">moveProgressBar('67.0');</script>
1097
+ <dd class="example passed"><span class="passed_spec_name">fails if not all keys are given in the hash</span><span class='duration'>0.00010s</span></dd>
1098
+ <script type="text/javascript">moveProgressBar('67.3');</script>
1099
+ <dd class="example passed"><span class="passed_spec_name">fails if no keys are contained in the hash</span><span class='duration'>0.00010s</span></dd>
1100
+ </dl>
1101
+ </div>
1102
+ <div id="div_group_89" class="example_group passed">
1103
+ <dl style="margin-left: 15px;">
1104
+ <dt id="example_group_89" class="passed">boolean</dt>
1105
+ <script type="text/javascript">moveProgressBar('67.7');</script>
1106
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a boolean</span><span class='duration'>0.00007s</span></dd>
1107
+ <script type="text/javascript">moveProgressBar('68.0');</script>
1108
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a boolean</span><span class='duration'>0.00010s</span></dd>
1109
+ </dl>
1110
+ </div>
1111
+ <div id="div_group_90" class="example_group passed">
1112
+ <dl style="margin-left: 30px;">
1113
+ <dt id="example_group_90" class="passed">options</dt>
1114
+ </dl>
1115
+ </div>
1116
+ <div id="div_group_91" class="example_group passed">
1117
+ <dl style="margin-left: 45px;">
1118
+ <dt id="example_group_91" class="passed">:rename</dt>
1119
+ <script type="text/javascript">moveProgressBar('68.4');</script>
1120
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00007s</span></dd>
1121
+ <script type="text/javascript">moveProgressBar('68.7');</script>
1122
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00010s</span></dd>
1123
+ </dl>
1124
+ </div>
1125
+ <div id="div_group_92" class="example_group passed">
1126
+ <dl style="margin-left: 45px;">
1127
+ <dt id="example_group_92" class="passed">:dependency</dt>
1128
+ <script type="text/javascript">moveProgressBar('69.1');</script>
1129
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00008s</span></dd>
1130
+ <script type="text/javascript">moveProgressBar('69.5');</script>
1131
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00010s</span></dd>
1132
+ </dl>
1133
+ </div>
1134
+ <div id="div_group_93" class="example_group passed">
1135
+ <dl style="margin-left: 45px;">
1136
+ <dt id="example_group_93" class="passed">:dependencies</dt>
1137
+ <script type="text/javascript">moveProgressBar('69.8');</script>
1138
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00007s</span></dd>
1139
+ <script type="text/javascript">moveProgressBar('70.2');</script>
1140
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00010s</span></dd>
1141
+ </dl>
1142
+ </div>
1143
+ <div id="div_group_94" class="example_group passed">
1144
+ <dl style="margin-left: 45px;">
1145
+ <dt id="example_group_94" class="passed">:required</dt>
1146
+ <script type="text/javascript">moveProgressBar('70.5');</script>
1147
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.01153s</span></dd>
1148
+ <script type="text/javascript">moveProgressBar('70.9');</script>
1149
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00014s</span></dd>
1150
+ <script type="text/javascript">moveProgressBar('71.2');</script>
1151
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00018s</span></dd>
1152
+ </dl>
1153
+ </div>
1154
+ <div id="div_group_95" class="example_group passed">
1155
+ <dl style="margin-left: 45px;">
1156
+ <dt id="example_group_95" class="passed">:in</dt>
1157
+ <script type="text/javascript">moveProgressBar('71.6');</script>
1158
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00010s</span></dd>
1159
+ <script type="text/javascript">moveProgressBar('71.9');</script>
1160
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00011s</span></dd>
1161
+ <script type="text/javascript">moveProgressBar('72.3');</script>
1162
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00014s</span></dd>
1163
+ </dl>
1164
+ </div>
1165
+ <div id="div_group_96" class="example_group passed">
1166
+ <dl style="margin-left: 45px;">
1167
+ <dt id="example_group_96" class="passed">:equals</dt>
1168
+ <script type="text/javascript">moveProgressBar('72.6');</script>
1169
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00017s</span></dd>
1170
+ <script type="text/javascript">moveProgressBar('73.0');</script>
1171
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00014s</span></dd>
1172
+ </dl>
1173
+ </div>
1174
+ <div id="div_group_97" class="example_group passed">
1175
+ <dl style="margin-left: 45px;">
1176
+ <dt id="example_group_97" class="passed">:extract</dt>
1177
+ <script type="text/javascript">moveProgressBar('73.4');</script>
1178
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00009s</span></dd>
1179
+ <script type="text/javascript">moveProgressBar('73.7');</script>
1180
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00008s</span></dd>
1181
+ </dl>
1182
+ </div>
1183
+ <div id="div_group_98" class="example_group passed">
1184
+ <dl style="margin-left: 45px;">
1185
+ <dt id="example_group_98" class="passed">:cast</dt>
1186
+ <script type="text/javascript">moveProgressBar('74.1');</script>
1187
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00009s</span></dd>
1188
+ <script type="text/javascript">moveProgressBar('74.4');</script>
1189
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
1190
+ </dl>
1191
+ </div>
1192
+ <div id="div_group_99" class="example_group passed">
1193
+ <dl style="margin-left: 15px;">
1194
+ <dt id="example_group_99" class="passed">ssid</dt>
1195
+ <script type="text/javascript">moveProgressBar('74.8');</script>
1196
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid SSID</span><span class='duration'>0.00017s</span></dd>
1197
+ <script type="text/javascript">moveProgressBar('75.1');</script>
1198
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a SSID</span><span class='duration'>0.00021s</span></dd>
1199
+ </dl>
1200
+ </div>
1201
+ <div id="div_group_100" class="example_group passed">
1202
+ <dl style="margin-left: 30px;">
1203
+ <dt id="example_group_100" class="passed">options</dt>
1204
+ </dl>
1205
+ </div>
1206
+ <div id="div_group_101" class="example_group passed">
1207
+ <dl style="margin-left: 45px;">
1208
+ <dt id="example_group_101" class="passed">:rename</dt>
1209
+ <script type="text/javascript">moveProgressBar('75.5');</script>
1210
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00012s</span></dd>
1211
+ <script type="text/javascript">moveProgressBar('75.8');</script>
1212
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00015s</span></dd>
1213
+ </dl>
1214
+ </div>
1215
+ <div id="div_group_102" class="example_group passed">
1216
+ <dl style="margin-left: 45px;">
1217
+ <dt id="example_group_102" class="passed">:dependency</dt>
1218
+ <script type="text/javascript">moveProgressBar('76.2');</script>
1219
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00012s</span></dd>
1220
+ <script type="text/javascript">moveProgressBar('76.5');</script>
1221
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00016s</span></dd>
1222
+ </dl>
1223
+ </div>
1224
+ <div id="div_group_103" class="example_group passed">
1225
+ <dl style="margin-left: 45px;">
1226
+ <dt id="example_group_103" class="passed">:dependencies</dt>
1227
+ <script type="text/javascript">moveProgressBar('76.9');</script>
1228
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00011s</span></dd>
1229
+ <script type="text/javascript">moveProgressBar('77.3');</script>
1230
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00021s</span></dd>
1231
+ </dl>
1232
+ </div>
1233
+ <div id="div_group_104" class="example_group passed">
1234
+ <dl style="margin-left: 45px;">
1235
+ <dt id="example_group_104" class="passed">:required</dt>
1236
+ <script type="text/javascript">moveProgressBar('77.6');</script>
1237
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
1238
+ <script type="text/javascript">moveProgressBar('78.0');</script>
1239
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00016s</span></dd>
1240
+ <script type="text/javascript">moveProgressBar('78.3');</script>
1241
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00017s</span></dd>
1242
+ </dl>
1243
+ </div>
1244
+ <div id="div_group_105" class="example_group passed">
1245
+ <dl style="margin-left: 45px;">
1246
+ <dt id="example_group_105" class="passed">:in</dt>
1247
+ <script type="text/javascript">moveProgressBar('78.7');</script>
1248
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00012s</span></dd>
1249
+ <script type="text/javascript">moveProgressBar('79.0');</script>
1250
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00009s</span></dd>
1251
+ <script type="text/javascript">moveProgressBar('79.4');</script>
1252
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00018s</span></dd>
1253
+ </dl>
1254
+ </div>
1255
+ <div id="div_group_106" class="example_group passed">
1256
+ <dl style="margin-left: 45px;">
1257
+ <dt id="example_group_106" class="passed">:equals</dt>
1258
+ <script type="text/javascript">moveProgressBar('79.7');</script>
1259
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00013s</span></dd>
1260
+ <script type="text/javascript">moveProgressBar('80.1');</script>
1261
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00015s</span></dd>
1262
+ </dl>
1263
+ </div>
1264
+ <div id="div_group_107" class="example_group passed">
1265
+ <dl style="margin-left: 45px;">
1266
+ <dt id="example_group_107" class="passed">:extract</dt>
1267
+ <script type="text/javascript">moveProgressBar('80.4');</script>
1268
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00010s</span></dd>
1269
+ <script type="text/javascript">moveProgressBar('80.8');</script>
1270
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00013s</span></dd>
1271
+ </dl>
1272
+ </div>
1273
+ <div id="div_group_108" class="example_group passed">
1274
+ <dl style="margin-left: 45px;">
1275
+ <dt id="example_group_108" class="passed">:cast</dt>
1276
+ <script type="text/javascript">moveProgressBar('81.2');</script>
1277
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00011s</span></dd>
1278
+ <script type="text/javascript">moveProgressBar('81.5');</script>
1279
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00008s</span></dd>
1280
+ </dl>
1281
+ </div>
1282
+ <div id="div_group_109" class="example_group passed">
1283
+ <dl style="margin-left: 15px;">
1284
+ <dt id="example_group_109" class="passed">box</dt>
1285
+ <script type="text/javascript">moveProgressBar('81.9');</script>
1286
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid box</span><span class='duration'>0.00012s</span></dd>
1287
+ <script type="text/javascript">moveProgressBar('82.2');</script>
1288
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a box</span><span class='duration'>0.00015s</span></dd>
1289
+ <script type="text/javascript">moveProgressBar('82.6');</script>
1290
+ <dd class="example passed"><span class="passed_spec_name">fails with an invalid top longitude</span><span class='duration'>0.00011s</span></dd>
1291
+ <script type="text/javascript">moveProgressBar('82.9');</script>
1292
+ <dd class="example passed"><span class="passed_spec_name">fails with an invalid top latitude</span><span class='duration'>0.00015s</span></dd>
1293
+ <script type="text/javascript">moveProgressBar('83.3');</script>
1294
+ <dd class="example passed"><span class="passed_spec_name">fails with an invalid down longitude</span><span class='duration'>0.00011s</span></dd>
1295
+ <script type="text/javascript">moveProgressBar('83.6');</script>
1296
+ <dd class="example passed"><span class="passed_spec_name">fails with an invalid down latitude</span><span class='duration'>0.00019s</span></dd>
1297
+ </dl>
1298
+ </div>
1299
+ <div id="div_group_110" class="example_group passed">
1300
+ <dl style="margin-left: 30px;">
1301
+ <dt id="example_group_110" class="passed">options</dt>
1302
+ </dl>
1303
+ </div>
1304
+ <div id="div_group_111" class="example_group passed">
1305
+ <dl style="margin-left: 45px;">
1306
+ <dt id="example_group_111" class="passed">:rename</dt>
1307
+ <script type="text/javascript">moveProgressBar('84.0');</script>
1308
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00013s</span></dd>
1309
+ <script type="text/javascript">moveProgressBar('84.3');</script>
1310
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00013s</span></dd>
1311
+ </dl>
1312
+ </div>
1313
+ <div id="div_group_112" class="example_group passed">
1314
+ <dl style="margin-left: 45px;">
1315
+ <dt id="example_group_112" class="passed">:dependency</dt>
1316
+ <script type="text/javascript">moveProgressBar('84.7');</script>
1317
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00011s</span></dd>
1318
+ <script type="text/javascript">moveProgressBar('85.1');</script>
1319
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00015s</span></dd>
1320
+ </dl>
1321
+ </div>
1322
+ <div id="div_group_113" class="example_group passed">
1323
+ <dl style="margin-left: 45px;">
1324
+ <dt id="example_group_113" class="passed">:dependencies</dt>
1325
+ <script type="text/javascript">moveProgressBar('85.4');</script>
1326
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00011s</span></dd>
1327
+ <script type="text/javascript">moveProgressBar('85.8');</script>
1328
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00020s</span></dd>
1329
+ </dl>
1330
+ </div>
1331
+ <div id="div_group_114" class="example_group passed">
1332
+ <dl style="margin-left: 45px;">
1333
+ <dt id="example_group_114" class="passed">:required</dt>
1334
+ <script type="text/javascript">moveProgressBar('86.1');</script>
1335
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00021s</span></dd>
1336
+ <script type="text/javascript">moveProgressBar('86.5');</script>
1337
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00015s</span></dd>
1338
+ <script type="text/javascript">moveProgressBar('86.8');</script>
1339
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00016s</span></dd>
1340
+ </dl>
1341
+ </div>
1342
+ <div id="div_group_115" class="example_group passed">
1343
+ <dl style="margin-left: 45px;">
1344
+ <dt id="example_group_115" class="passed">:in</dt>
1345
+ <script type="text/javascript">moveProgressBar('87.2');</script>
1346
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00013s</span></dd>
1347
+ <script type="text/javascript">moveProgressBar('87.5');</script>
1348
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00017s</span></dd>
1349
+ <script type="text/javascript">moveProgressBar('87.9');</script>
1350
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00018s</span></dd>
1351
+ </dl>
1352
+ </div>
1353
+ <div id="div_group_116" class="example_group passed">
1354
+ <dl style="margin-left: 45px;">
1355
+ <dt id="example_group_116" class="passed">:equals</dt>
1356
+ <script type="text/javascript">moveProgressBar('88.2');</script>
1357
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00013s</span></dd>
1358
+ <script type="text/javascript">moveProgressBar('88.6');</script>
1359
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00016s</span></dd>
1360
+ </dl>
1361
+ </div>
1362
+ <div id="div_group_117" class="example_group passed">
1363
+ <dl style="margin-left: 45px;">
1364
+ <dt id="example_group_117" class="passed">:extract</dt>
1365
+ <script type="text/javascript">moveProgressBar('89.0');</script>
1366
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00010s</span></dd>
1367
+ <script type="text/javascript">moveProgressBar('89.3');</script>
1368
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00018s</span></dd>
1369
+ </dl>
1370
+ </div>
1371
+ <div id="div_group_118" class="example_group passed">
1372
+ <dl style="margin-left: 45px;">
1373
+ <dt id="example_group_118" class="passed">:cast</dt>
1374
+ <script type="text/javascript">moveProgressBar('89.7');</script>
1375
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00011s</span></dd>
1376
+ <script type="text/javascript">moveProgressBar('90.0');</script>
1377
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00011s</span></dd>
1378
+ </dl>
1379
+ </div>
1380
+ <div id="div_group_119" class="example_group passed">
1381
+ <dl style="margin-left: 45px;">
1382
+ <dt id="example_group_119" class="passed">:at_least</dt>
1383
+ <script type="text/javascript">moveProgressBar('90.4');</script>
1384
+ <dd class="example passed"><span class="passed_spec_name">succeeds if the box is bigger than the one given with the at_least option</span><span class='duration'>0.00019s</span></dd>
1385
+ <script type="text/javascript">moveProgressBar('90.7');</script>
1386
+ <dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_least option</span><span class='duration'>0.00012s</span></dd>
1387
+ <script type="text/javascript">moveProgressBar('91.1');</script>
1388
+ <dd class="example passed"><span class="passed_spec_name">fails if the box is smaller than the one given with the at_least option</span><span class='duration'>0.00028s</span></dd>
1389
+ </dl>
1390
+ </div>
1391
+ <div id="div_group_120" class="example_group passed">
1392
+ <dl style="margin-left: 45px;">
1393
+ <dt id="example_group_120" class="passed">at_most</dt>
1394
+ <script type="text/javascript">moveProgressBar('91.4');</script>
1395
+ <dd class="example passed"><span class="passed_spec_name">succeeds if the box is smaller than the one given with the at_most option</span><span class='duration'>0.00022s</span></dd>
1396
+ <script type="text/javascript">moveProgressBar('91.8');</script>
1397
+ <dd class="example passed"><span class="passed_spec_name">succeeds if the box is equal than the one given with the at_most option</span><span class='duration'>0.00015s</span></dd>
1398
+ <script type="text/javascript">moveProgressBar('92.1');</script>
1399
+ <dd class="example passed"><span class="passed_spec_name">fails if the box is bigger than the one given with the at_most option</span><span class='duration'>0.00024s</span></dd>
1400
+ </dl>
1401
+ </div>
1402
+ <div id="div_group_121" class="example_group passed">
1403
+ <dl style="margin-left: 15px;">
1404
+ <dt id="example_group_121" class="passed">email</dt>
1405
+ <script type="text/javascript">moveProgressBar('92.5');</script>
1406
+ <dd class="example passed"><span class="passed_spec_name">succeeds when given a valid email</span><span class='duration'>0.00012s</span></dd>
1407
+ <script type="text/javascript">moveProgressBar('92.9');</script>
1408
+ <dd class="example passed"><span class="passed_spec_name">fails when not given a email</span><span class='duration'>0.00021s</span></dd>
1409
+ </dl>
1410
+ </div>
1411
+ <div id="div_group_122" class="example_group passed">
1412
+ <dl style="margin-left: 30px;">
1413
+ <dt id="example_group_122" class="passed">options</dt>
1414
+ </dl>
1415
+ </div>
1416
+ <div id="div_group_123" class="example_group passed">
1417
+ <dl style="margin-left: 45px;">
1418
+ <dt id="example_group_123" class="passed">:rename</dt>
1419
+ <script type="text/javascript">moveProgressBar('93.2');</script>
1420
+ <dd class="example passed"><span class="passed_spec_name">correctly renames a key when the value is valid</span><span class='duration'>0.00011s</span></dd>
1421
+ <script type="text/javascript">moveProgressBar('93.6');</script>
1422
+ <dd class="example passed"><span class="passed_spec_name">correctly doesn't rename a key when the value is invalid</span><span class='duration'>0.00021s</span></dd>
1423
+ </dl>
1424
+ </div>
1425
+ <div id="div_group_124" class="example_group passed">
1426
+ <dl style="margin-left: 45px;">
1427
+ <dt id="example_group_124" class="passed">:dependency</dt>
1428
+ <script type="text/javascript">moveProgressBar('93.9');</script>
1429
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a dependency is given as a key and respected</span><span class='duration'>0.00018s</span></dd>
1430
+ <script type="text/javascript">moveProgressBar('94.3');</script>
1431
+ <dd class="example passed"><span class="passed_spec_name">fails when a dependency is not respected</span><span class='duration'>0.00024s</span></dd>
1432
+ </dl>
1433
+ </div>
1434
+ <div id="div_group_125" class="example_group passed">
1435
+ <dl style="margin-left: 45px;">
1436
+ <dt id="example_group_125" class="passed">:dependencies</dt>
1437
+ <script type="text/javascript">moveProgressBar('94.6');</script>
1438
+ <dd class="example passed"><span class="passed_spec_name">succeeds when dependencies are given as an array and respected</span><span class='duration'>0.00018s</span></dd>
1439
+ <script type="text/javascript">moveProgressBar('95.0');</script>
1440
+ <dd class="example passed"><span class="passed_spec_name">fails when one of the dependencies is not respected</span><span class='duration'>0.00025s</span></dd>
1441
+ </dl>
1442
+ </div>
1443
+ <div id="div_group_126" class="example_group passed">
1444
+ <dl style="margin-left: 45px;">
1445
+ <dt id="example_group_126" class="passed">:required</dt>
1446
+ <script type="text/javascript">moveProgressBar('95.3');</script>
1447
+ <dd class="example passed"><span class="passed_spec_name">succeeds when a not required key is not given, but filters nothing</span><span class='duration'>0.00032s</span></dd>
1448
+ <script type="text/javascript">moveProgressBar('95.7');</script>
1449
+ <dd class="example passed"><span class="passed_spec_name">suceeds when a key has a required option to false, and is not given, but filters nothing</span><span class='duration'>0.00013s</span></dd>
1450
+ <script type="text/javascript">moveProgressBar('96.0');</script>
1451
+ <dd class="example passed"><span class="passed_spec_name">fails when a required key is not given</span><span class='duration'>0.00015s</span></dd>
1452
+ </dl>
1453
+ </div>
1454
+ <div id="div_group_127" class="example_group passed">
1455
+ <dl style="margin-left: 45px;">
1456
+ <dt id="example_group_127" class="passed">:in</dt>
1457
+ <script type="text/javascript">moveProgressBar('96.4');</script>
1458
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is effectively in the possible values</span><span class='duration'>0.00008s</span></dd>
1459
+ <script type="text/javascript">moveProgressBar('96.8');</script>
1460
+ <dd class="example passed"><span class="passed_spec_name">succeeds if there are no values</span><span class='duration'>0.00021s</span></dd>
1461
+ <script type="text/javascript">moveProgressBar('97.1');</script>
1462
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not in the possible values</span><span class='duration'>0.00013s</span></dd>
1463
+ </dl>
1464
+ </div>
1465
+ <div id="div_group_128" class="example_group passed">
1466
+ <dl style="margin-left: 45px;">
1467
+ <dt id="example_group_128" class="passed">:equals</dt>
1468
+ <script type="text/javascript">moveProgressBar('97.5');</script>
1469
+ <dd class="example passed"><span class="passed_spec_name">succeeds when the value is equal to the given value</span><span class='duration'>0.00009s</span></dd>
1470
+ <script type="text/javascript">moveProgressBar('97.8');</script>
1471
+ <dd class="example passed"><span class="passed_spec_name">fails if the value is not equal to the given value</span><span class='duration'>0.00022s</span></dd>
1472
+ </dl>
1473
+ </div>
1474
+ <div id="div_group_129" class="example_group passed">
1475
+ <dl style="margin-left: 45px;">
1476
+ <dt id="example_group_129" class="passed">:extract</dt>
1477
+ <script type="text/javascript">moveProgressBar('98.2');</script>
1478
+ <dd class="example passed"><span class="passed_spec_name">etracts the data when given at true</span><span class='duration'>0.00008s</span></dd>
1479
+ <script type="text/javascript">moveProgressBar('98.5');</script>
1480
+ <dd class="example passed"><span class="passed_spec_name">doesn't extract the data when given at false</span><span class='duration'>0.00007s</span></dd>
1481
+ </dl>
1482
+ </div>
1483
+ <div id="div_group_130" class="example_group passed">
1484
+ <dl style="margin-left: 45px;">
1485
+ <dt id="example_group_130" class="passed">:cast</dt>
1486
+ <script type="text/javascript">moveProgressBar('98.9');</script>
1487
+ <dd class="example passed"><span class="passed_spec_name">casts the data when given at true</span><span class='duration'>0.00015s</span></dd>
1488
+ <script type="text/javascript">moveProgressBar('99.2');</script>
1489
+ <dd class="example passed"><span class="passed_spec_name">doesn't cast the data when given at false</span><span class='duration'>0.00012s</span></dd>
1490
+ </dl>
1491
+ </div>
1492
+ <div id="div_group_131" class="example_group passed">
1493
+ <dl style="margin-left: 0px;">
1494
+ <dt id="example_group_131" class="passed">Kharon</dt>
1495
+ <script type="text/javascript">moveProgressBar('99.6');</script>
1496
+ <dd class="example passed"><span class="passed_spec_name">Can not use exceptions</span><span class='duration'>0.00142s</span></dd>
1497
+ <script type="text/javascript">moveProgressBar('100.0');</script>
1498
+ <dd class="example passed"><span class="passed_spec_name">Can use exceptions</span><span class='duration'>0.00011s</span></dd>
1499
+ </dl>
1500
+ </div>
1501
+ <script type="text/javascript">document.getElementById('duration').innerHTML = "Finished in <strong>0.11527 seconds</strong>";</script>
1502
+ <script type="text/javascript">document.getElementById('totals').innerHTML = "282 examples, 0 failures";</script>
1503
+ </div>
1504
+ </div>
1505
+ </body>
1506
+ </html>