Skip to content

Commit

Permalink
Update constructor to handle parent changes.
Browse files Browse the repository at this point in the history
Previously there was no constructor for the `ExampleGroup`. This changed
with rspec/rspec-core#1687. Instead of exactly matching the contructor,
use the standard Ruby argument catch-all to simply delegate up the
chain.
  • Loading branch information
cupakromer committed Aug 30, 2014
1 parent b7b22ed commit e345762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rspec/rails/adapters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def teardown(*methods)
end
end

def initialize
def initialize(*args)
super
@example = nil
end

Expand Down

0 comments on commit e345762

Please sign in to comment.