The code powering m.abunchtell.com https://m.abunchtell.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

20 řádky
667 B

  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe FlashesHelper, type: :helper do
  4. describe 'user_facing_flashes' do
  5. it 'returns user facing flashes' do
  6. flash[:alert] = 'an alert'
  7. flash[:error] = 'an error'
  8. flash[:notice] = 'a notice'
  9. flash[:success] = 'a success'
  10. flash[:not_user_facing] = 'a not user facing flash'
  11. expect(helper.user_facing_flashes).to eq 'alert' => 'an alert',
  12. 'error' => 'an error',
  13. 'notice' => 'a notice',
  14. 'success' => 'a success'
  15. end
  16. end
  17. end