From ccf2ce4d3686b74a7263a9265e36d1129c6c67a6 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 13 Aug 2015 12:57:50 +0200 Subject: [PATCH] line breaks to please rubocop --- features/step_definitions/enumeration_steps.rb | 4 ++-- features/step_definitions/timelines_then_steps.rb | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/features/step_definitions/enumeration_steps.rb b/features/step_definitions/enumeration_steps.rb index 49fde642a8..fe16fcce09 100644 --- a/features/step_definitions/enumeration_steps.rb +++ b/features/step_definitions/enumeration_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) diff --git a/features/step_definitions/timelines_then_steps.rb b/features/step_definitions/timelines_then_steps.rb index 75139ee960..5c7f0d3c12 100644 --- a/features/step_definitions/timelines_then_steps.rb +++ b/features/step_definitions/timelines_then_steps.rb @@ -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