Sha256: 17f877c45764a891013474911918be400278805259e78d5f3c16918103cffd32
Contents?: true
Size: 503 Bytes
Versions: 9
Compression:
Stored size: 503 Bytes
Contents
require 'xcpretty' require 'tempfile' module XCPretty describe JUnit do before(:each) do @reporter_file = Tempfile.new('junit') @formatter = JUnit.new(path: @reporter_file.path) end it "has name attribute in root node" do test_name = "ReactiveCocoaTests.xctest" @formatter.format_test_run_started(test_name) @formatter.finish document = REXML::Document.new(@reporter_file) document.root.attributes['name'].should == test_name end end end
Version data entries
9 entries across 9 versions & 2 rubygems