jasmine-headless-webkit/features/steps/given/options/i_have_reporters.rb

11 lines
245 B
Ruby
Raw Permalink Normal View History

2011-12-29 23:37:23 +00:00
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