Joined August 2013
·
Posted to
lambdas in ruby case (switch)
over 1 year
ago
So the point is you don't need lambda.call
because the ===
operator (which is what gets called by the case
statement under the hood) invokes that on the lambda by default?
Posted to
Database cleaner, RSpec and Capybara configuration.
over 1 year
ago
Since this line is assignment and not equality comparison, won't it always return :truncation
?
DatabaseCleaner.strategy = example.metadata[:js] ? :truncation : :transaction
Achievements
94 Karma
4,999 Total ProTip Views
T-Rex
Have at least one original repo where C is the dominant language
Altruist
Increase developer well-being by sharing at least 20 open source projects
Forked
Have a project valued enough to be forked by someone else
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Have you tried simply:
?