spec/spec.jquery.js in jspec-2.11.8 vs spec/spec.jquery.js in jspec-2.11.9
- old
+ new
@@ -86,11 +86,11 @@
end
end
describe 'have_text'
it 'should check for plain text'
- elem.children('label').should.have_text 'Save?'
+ $('label', elem).should.have_text 'Save?'
end
end
describe 'have_value'
it 'should check if an element has the given value'
@@ -98,18 +98,18 @@
end
end
describe 'have_class'
it 'should check if an element has the given class'
- elem.children('select').should.have_class 'save'
+ $('select', elem).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'
- elem.children('select').should.not.have_classes 'save', 'foo'
- elem.children('select').should.not.have_classes 'foo', 'save'
+ $('select', elem).should.have_classes 'save', 'form-select'
+ $('select', elem).should.not.have_classes 'save', 'foo'
+ $('select', elem).should.not.have_classes 'foo', 'save'
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