Skip to content

Commit d5d5c73

Browse files
Fix rubocop offenses
1 parent 888853b commit d5d5c73

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

helpers/helpers.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ def login_archivist
6161

6262
begin
6363
element = find('.alert.alert-danger.with-hide-alert')
64-
if element.text == 'Login attempt failed'
65-
raise "Login failed for user: archivist-user-#{uuid}"
66-
end
64+
raise "Login failed for user: archivist-user-#{uuid}" if element.text == 'Login attempt failed'
6765
rescue Capybara::ElementNotFound
6866
# Pass on successful login
6967
end

staff_features/repositories/repository_create.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
rows = all('#tabledSearchResults tbody tr')
1313

14-
expect(rows.length > 0).to eq true
14+
expect(rows.length.positive?).to eq true
1515

1616
within rows[0] do
17-
click_on "View"
17+
click_on 'View'
1818
end
1919

2020
respository_id = current_url.split('/').pop

0 commit comments

Comments
 (0)