Sha256: bfdfa5f81ba2b1616710061fe278fdd515947230450543c32c94efc7d8c5cb74
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 Bytes
Contents
module Spree module TestingSupport module Flash def assert_flash_success(flash) flash = convert_flash(flash) within("[class='flash success']") do expect(page).to have_content(flash) end end def assert_successful_update_message(resource) flash = I18n.t('spree.successfully_updated', resource: I18n.t(resource, scope: 'spree')) assert_flash_success(flash) end private def convert_flash(flash) if flash.is_a?(Symbol) flash = I18n.t(flash, scope: 'spree') end flash end end end end
Version data entries
6 entries across 6 versions & 1 rubygems