Closed eitoball closed 10 years ago
FYI, if the method name is like DatabaseRewinder.set_strategy
, the keyword arguments are parsed correctly.
Unfortunately, we can't use keyword arguments in a method named with =
.
So this patch LGTM :star:
Whoa, how did I miss this PR? Thank you @eitoball and @deeeki!
:hand: :smiley:
When you have
DatabaseRewinder.strategy = :truncate, only: ['foos']
, the methodDatabaseRewinder.strategy=
seems to get an array like[:truncate, {:only => ['foos'}]
.