janitor_rails 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/vendor/assets/javascripts/janitor.js +13 -0
- metadata +3 -3
@@ -116,6 +116,15 @@ window.Janitor.Stitch = {};
|
|
116
116
|
actual: actual,
|
117
117
|
delta: delta
|
118
118
|
};
|
119
|
+
},
|
120
|
+
match: function(regEx, actual) {
|
121
|
+
var success;
|
122
|
+
success = regEx.exec(actual);
|
123
|
+
return {
|
124
|
+
success: success,
|
125
|
+
regEx: regEx,
|
126
|
+
actual: actual
|
127
|
+
};
|
119
128
|
}
|
120
129
|
};
|
121
130
|
}, "browser_presenter": function(exports, require, module) {(function() {
|
@@ -262,6 +271,10 @@ window.Janitor.Stitch = {};
|
|
262
271
|
return "" + this.result.value + " is not true";
|
263
272
|
};
|
264
273
|
|
274
|
+
FailedAssertionMessage.prototype.assertMatch = function() {
|
275
|
+
return "" + this.result.actual + " does not match " + (this.result.regEx.toString());
|
276
|
+
};
|
277
|
+
|
265
278
|
FailedAssertionMessage.prototype.toString = function() {
|
266
279
|
if (this[this.methodName()]) {
|
267
280
|
return this[this.methodName()]();
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: janitor_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: janitor_rails lets you easily test Javascript code with Janitor.
|
15
15
|
email: rasmusrnielsen@gmail.com
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project:
|
49
|
-
rubygems_version: 1.8.
|
49
|
+
rubygems_version: 1.8.24
|
50
50
|
signing_key:
|
51
51
|
specification_version: 3
|
52
52
|
summary: Javascript TDD via Janitor and Rails.
|