Sha256: 1b1a3ccd758d18c888903abdc6e99f5eac40bfbd9da295d01ac56e21607c80be

Contents?: true

Size: 455 Bytes

Versions: 32

Compression:

Stored size: 455 Bytes

Contents

require 'test_helper'

module Components

  class FlashMessagesTest < ActiveSupport::TestCase

    def helpers
      mock_action_view do
        def flash
          {notice: "Message"}
        end

      end
    end

    def flashmsg
      arbre {
        flash_messages
      }
    end

    test "renders" do
      assert flashmsg
    end

    test "shows correct flash message" do
      assert_match /<span>Message<\/span>/, flashmsg
    end

  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
express_admin-1.7.18 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.17 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.16 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.16.pre1 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.15 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.14 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.13 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.12 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.11 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.10 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.9 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.8 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.7 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.5 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.4 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.3 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.2 test/dummy/test/components/flash_messages_test.rb
express_admin-1.7.1 test/dummy/test/components/flash_messages_test.rb
express_admin-1.6.13 test/dummy/test/components/flash_messages_test.rb
express_admin-1.6.12 test/dummy/test/components/flash_messages_test.rb