Sha256: 64cad25148c63735357bb44fd4032e55576b755a87356055c385afb80d6c7478

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

module Capybara
  module Angular
    module DSL
      include Capybara::DSL

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

      def page
        wait_until_angular_ready
        Capybara.current_session
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capybara-angular-0.1.1 lib/capybara/angular/dsl.rb
capybara-angular-0.1.0 lib/capybara/angular/dsl.rb
capybara-angular-0.0.4 lib/capybara/angular/dsl.rb
capybara-angular-0.0.3 lib/capybara/angular/dsl.rb
capybara-angular-0.0.2 lib/capybara/angular/dsl.rb