Sha256: af78a7bdf131c87f9eb8e8b884f7261c78305879e7a4288b465887ed19fadb74

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

require 'capybara/dsl'

module Bbq
  module Core
    class TestUser
      module CapybaraDsl
        ::Capybara::Session::DSL_METHODS.each do |method|
          class_eval <<-RUBY, __FILE__, __LINE__+1
            def #{method}(*args, &block)
              page.#{method}(*args, &block)
            end
          RUBY
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-core-0.4.0 lib/bbq/core/test_user/capybara_dsl.rb
bbq-core-0.3.0 lib/bbq/core/test_user/capybara_dsl.rb