Sha256: 90bf2db9145263063332b1ca08d254d6e00042fde2146fa05826753187b244b2

Contents?: true

Size: 683 Bytes

Versions: 2

Compression:

Stored size: 683 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module ActiveAdmin
    module Matchers
      module Layout
        def have_action_item(text, options = {})
          opts = options.merge(text: text)
          have_selector(action_item_selector, opts)
        end

        def have_page_title(text, options = {})
          opts = options.merge(text: text)
          have_selector(page_title_selector, opts)
        end

        def have_flash_message(text, options = {})
          type = options.delete(:type)
          opts = options.merge(text: text)
          selector = flash_message_selector(type)
          have_selector(selector, opts)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
capybara_active_admin-0.2.1 lib/capybara/active_admin/matchers/layout.rb
capybara_active_admin-0.2.0 lib/capybara/active_admin/matchers/layout.rb