lib/allure-ruby-api/builder.rb in allure-ruby-api-0.6 vs lib/allure-ruby-api/builder.rb in allure-ruby-api-0.6.1
- old
+ new
@@ -8,11 +8,11 @@
class Builder
class << self
attr_accessor :suites
MUTEX = Mutex.new
- def start_suite(suite, labels = [:severity => :normal])
+ def start_suite(suite, labels = {:severity => :normal})
init_suites
MUTEX.synchronize do
puts "Starting case_or_suite #{suite} with labels #{labels}"
self.suites[suite] = {
:title => suite,
@@ -21,10 +21,10 @@
:labels => labels
}
end
end
- def start_test(suite, test, labels = [:severity => :normal])
+ def start_test(suite, test, labels = {:severity => :normal})
MUTEX.synchronize do
puts "Starting test #{suite}.#{test} with labels #{labels}"
self.suites[suite][:tests][test] = {
:title => test,
:start => timestamp,
\ No newline at end of file