jasmine-headless-webkit/features/steps/given/options/i_have_reporters.rb
2011-12-29 18:37:23 -05:00

11 lines
245 B
Ruby

Given /^I have the following reporters:$/ do |table|
@options[:reporters] = []
table.hashes.each do |hash|
reporter = [ hash['Name'] ]
reporter << hash['File'] if !hash['File'].empty?
@options[:reporters] << reporter
end
end