Class: Capybara::Session

Inherits:
Object
  • Object
show all
Includes:
Angular::DSL
Defined in:
lib/angular/capybara_setup.rb

Overview

bind logic to capybara

Instance Method Summary collapse

Methods included from Angular::DSL

#has_ng_binding?, #has_ng_model?, #has_ng_options?, #has_ng_repeater_row?, #has_no_ng_model?, #has_no_ng_options?, #has_no_ng_repeater_row?, #ng_binding, #ng_bindings, #ng_eval, #ng_install, #ng_location, #ng_location_abs, #ng_model, #ng_models, #ng_option, #ng_options, #ng_repeater_column, #ng_repeater_columns, #ng_repeater_element, #ng_repeater_elements, #ng_repeater_row, #ng_repeater_rows, #ng_root_selector, #ng_set_location, #ng_wait

Instance Method Details

#ngObject



9
10
11
12
# File 'lib/angular/capybara_setup.rb', line 9

def ng
  opt = ng_session_options
  opt[:ng] ||= ::Angular::Setup.new(self)
end

#ng_session_optionsObject



5
6
7
# File 'lib/angular/capybara_setup.rb', line 5

def ng_session_options
  @ng_session_options ||= {}
end