logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

flashes_helper_spec.rb (667B)


  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