Sha256: 76e352115cb3594dd00af32b3d774976c15907eaabfbcbf142b1c7bfcdb62011

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

module Spree
  module Core
    module TestingSupport
      module Flash
        def assert_flash_notice(flash)
          if flash.is_a?(Symbol)
            flash = I18n.t(flash)
          end

          within("[class='flash notice']") do
            page.should have_content(flash)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-1.2.5 lib/spree/core/testing_support/flash.rb
spree_core-1.2.4 lib/spree/core/testing_support/flash.rb
spree_core-1.2.3 lib/spree/core/testing_support/flash.rb
spree_core-1.2.2 lib/spree/core/testing_support/flash.rb