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:
parent
db40eff969
commit
f8d1caa66c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue