Class: Privileges

Inherits:
Object
  • Object
show all
Includes:
Capybara::DSL
Defined in:
helpers/privilege_list.rb

Instance Method Summary collapse

Constructor Details

#initializePrivileges

Returns a new instance of Privileges.


4
5
6
7
8
9
# File 'helpers/privilege_list.rb', line 4

def initialize
  within(:id, 'privileges-index-partial'){
  array = all(:xpath, ".//*[@class='table privileges']/tbody//td")
  @entries = array.map {|value| value.text}
  }
end

Instance Method Details

#entriesObject


11
12
13
# File 'helpers/privilege_list.rb', line 11

def entries
  return @entries
end