Sha256: de15e44427e2707123ee77ca88666a328d25c054686d0cc9c4a38c7481efae8a
Contents?: true
Size: 519 Bytes
Versions: 8
Compression:
Stored size: 519 Bytes
Contents
def qunit_results result_str = "QUnit Results:\n\t" + page.find("#qunit-testresult").text.split("\n").join("\n\t") page.all(:xpath, "//ol[@id='qunit-tests']/li[@class='fail']").each do |element| result_str += "\n\t" + element.find("strong").text end result_str + "\n" end Then /I should see no qunit failures$/ do page.should have_css('#qunit-testresult') page.should_not have_css('li.fail'), qunit_results end Given /^I run the qunit tests$/ do visit("/test/scidea_schools_qunit_tests") end
Version data entries
8 entries across 8 versions & 1 rubygems