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
  <<-MESSAGE.strip
Using `set_flash` with the `now` qualifier and specifying `now` after other
qualifiers is no longer allowed.

You'll want to use `now` immediately after `set_flash`. For instance:

    # Valid
    should set_flash.now[:foo]
    should set_flash.now[:foo].to('bar')

    # Invalid
    should set_flash[:foo].now
    should set_flash[:foo].to('bar').now
  MESSAGE
end