summaryrefslogtreecommitdiffstats
path: root/test/assertions.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-03-28 15:28:28 +0100
committerSamy Pessé <samypesse@gmail.com>2015-03-28 15:28:28 +0100
commitffd69ad1f2f869796f10c425e67680fd7f223ff5 (patch)
treebd41cf93504cb1abe7f8dc185d13e07ff1013a9e /test/assertions.js
parent90040114797857a52308b5ecbbd08b1dd6f78464 (diff)
downloadgitbook-ffd69ad1f2f869796f10c425e67680fd7f223ff5.zip
gitbook-ffd69ad1f2f869796f10c425e67680fd7f223ff5.tar.gz
gitbook-ffd69ad1f2f869796f10c425e67680fd7f223ff5.tar.bz2
Add test for summary paths
Related to #674
Diffstat (limited to 'test/assertions.js')
-rw-r--r--test/assertions.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/assertions.js b/test/assertions.js
index 443929a..d807d4d 100644
--- a/test/assertions.js
+++ b/test/assertions.js
@@ -46,7 +46,9 @@ should.Assertion.add('html', function(rules, description) {
// Test attributes
_.each(validations.attributes, function(value, name) {
- $el.attr(name).should.be.equal(value);
+ var attr = $el.attr(name);
+ should(attr).be.ok;
+ attr.should.be.equal(value);
});
});
});