spec/spec.jquery.js in visionmedia-jspec-2.10.0 vs spec/spec.jquery.js in visionmedia-jspec-2.11.0
- old
+ new
@@ -47,10 +47,13 @@
</p>'
elem = $(html)
end
it 'should fail with pretty print of element'
- elem.should.not.have_tag 'label'
+ spec = mock_it(function() {
+ elem.should.not.have_tag 'label'
+ })
+ spec.should.have_failure_message(/<label>\s*<em>Save?/i)
end
describe 'have_tag / have_one'
it 'should check if a single child is present'
elem.should.have_tag 'label'
\ No newline at end of file