spec/spec.jquery.js in visionmedia-jspec-1.1.3 vs spec/spec.jquery.js in visionmedia-jspec-1.1.4
- old
+ new
@@ -32,17 +32,17 @@
end
end
describe 'matchers'
before_each
- html = '<p><label><em>Save?</em></label> \
- <select class="save" style="display: none;"> \
- <option value="0">No</option> \
- <option value="1">Yes</option> \
- </select> \
- <strong>test</strong> \
- <strong>test</strong> \
+ html = '<p><label><em>Save?</em></label> \
+ <select class="save form-select" style="display: none;"> \
+ <option value="0">No</option> \
+ <option value="1">Yes</option> \
+ </select> \
+ <strong>test</strong> \
+ <strong>test</strong> \
</p>'
.elem = $(html)
end
it 'should fail with pretty print of element'
@@ -93,9 +93,15 @@
end
describe 'have_class'
it 'should check if an element has the given class'
.elem.children('select').should.have_class 'save'
+ end
+ end
+
+ describe 'have_classes'
+ it 'should check if an element has the classes given'
+ .elem.children('select').should.have_classes 'save', 'form-select'
end
end
describe 'be_visible'
it 'should check that an element is not hidden or set to display of none'
\ No newline at end of file