Sha256: 809686ac1b8a925cfd7b05fac38c12d853e09eefb6b21bdd76591e919bdc27c1

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

module Capybara
  module Angular
    module DSL
      include Capybara::DSL

      Capybara::Session::DSL_METHODS.each do |method|
        define_method(method) do |*args, &block|
          wait_until_angular_ready
          Capybara.current_session.send(method, *args, &block)
        end
      end

      def wait_until_angular_ready
        Waiter.new(Capybara.current_session).wait_until_ready
      end

      extend DSL
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara-angular-0.0.1 lib/capybara/angular/dsl.rb