discourse/spec/components/wizard
Daniel Waterworth 55a1394342 DEV: pluck_first
Doing .pluck(:column).first is a very common pattern in Discourse and in
most cases, a limit cause isn't being added. Instead of adding a limit
clause to all these callsites, this commit adds two new methods to
ActiveRecord::Relation:

pluck_first, equivalent to limit(1).pluck(*columns).first

and pluck_first! which, like other finder methods, raises an exception
when no record is found
2019-10-21 12:08:20 +01:00
..
step_updater_spec.rb DEV: pluck_first 2019-10-21 12:08:20 +01:00
wizard_builder_spec.rb FIX: Remove default val for colors step if a default theme has been set. 2019-05-09 17:25:09 +08:00
wizard_spec.rb Prefabricate admin in wizard_spec.rb 2019-05-10 08:34:04 -04:00
wizard_step_spec.rb DEV: use #frozen_string_literal: true on all spec 2019-04-30 10:27:42 +10:00