features/steps/junit_steps.rb in xcpretty-0.1.4 vs features/steps/junit_steps.rb in xcpretty-0.1.5
- old
+ new
@@ -9,9 +9,15 @@
junit_report_root.elements.to_a.detect do |node|
node.attributes["time"] != nil
end.should_not be_nil
end
+Then(/^I should see a pending test node in my report$/) do
+ junit_report_root.elements.to_a.detect do |node|
+ node.elements.to_a.detect {|child| child.name == 'skipped'}
+ end.should_not be_nil
+end
+
Then(/^I should see a test suite node$/) do
junit_report_root.elements.to_a.first.should_not be_nil
end
Then(/^I should see (\d+) tests in my report$/) do |test_count|