1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

allow SpecHelper#spec to take multiple types of options

This commit is contained in:
Thomas Walpole 2017-11-14 20:17:11 -08:00
parent db40eff969
commit f8d1caa66c

View file

@ -52,7 +52,7 @@ module Capybara
end
end
def spec(name, options={}, &block)
def spec(name, *options, &block)
@specs ||= []
@specs << [name, options, block]
end
@ -79,7 +79,7 @@ module Capybara
end
specs.each do |spec_name, spec_options, block|
describe spec_name, spec_options do
describe spec_name, *spec_options do
class_eval(&block)
end
end