Exception: Shoulda::Matchers::ActionController::SetFlashMatcher::QualifierOrderError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shoulda/matchers/action_controller/set_flash_matcher.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# File 'lib/shoulda/matchers/action_controller/set_flash_matcher.rb', line 208

def message
  "Using `set_flash` with the `now` qualifier and specifying `now` after other\nqualifiers is no longer allowed.\n\nYou'll want to use `now` immediately after `set_flash`. For instance:\n\n    # Valid\n    should set_flash.now[:foo]\n    should set_flash.now[:foo].to('bar')\n\n    # Invalid\n    should set_flash[:foo].now\n    should set_flash[:foo].to('bar').now\n  MESSAGE\nend\n".strip