line breaks to please rubocop

pull/3343/head
Henriette Dinger 9 years ago
parent b67659ddc2
commit ccf2ce4d36
  1. 4
      features/step_definitions/enumeration_steps.rb
  2. 5
      features/step_definitions/timelines_then_steps.rb

@ -47,8 +47,8 @@ Then(/^I should see the enumeration:$/) do |table|
# as the html is not structured in any way we have to look for the first
# h3 that contains the heading for the activity we are interested in
# and then the td within the directly following table
should have_selector("h3:contains('#{i18n_for_activity_type(type)}') + .generic-table--container table td",
text: attributes['name'])
selector = "h3:contains('#{i18n_for_activity_type(type)}') + .generic-table--container table td"
should have_selector(selector, text: attributes['name'])
end
def activity_type_from_string(string)

@ -165,7 +165,10 @@ end
Then(/^the "([^"]*)" row should (not )?be marked as allowing associations$/) do |title, negation|
should_be_visible = !negation
table_row = page.all(:css, 'table.generic-table tbody tr td', text: title).first.find(:xpath, './ancestor::tr')
table_row = page
.all(:css, 'table.generic-table tbody tr td', text: title)
.first
.find(:xpath, './ancestor::tr')
nodes = table_row.all(:css, '.timelines-pt-allows_association span.icon-yes')
if should_be_visible
nodes.should_not be_empty

Loading…
Cancel
Save