define [ 'jquery' 'compiled/jquery.rails_flash_notifications' ], ($) -> fixtures = null QUnit.module 'FlashNotifications', setup: -> fixtures = document.getElementById("fixtures") flashHtml = "
" fixtures.innerHTML = flashHtml $.initFlashContainer() teardown: -> fixtures.innerHTML = "" test 'text notification', -> $.flashMessage('here is a thing') ok $('#flash_message_holder .ic-flash-success').text().match(/here is a thing/) test 'html sanitization', -> $.flashWarning('') ok $('#flash_message_holder .ic-flash-warning').html().match(/<script>/) test 'html messages', -> $.flashError({html: '