Added step to set pagination items per page

pull/242/head
Sebastian Schuster 11 years ago
parent 14e9b84b65
commit 4bbe4e02c9
  1. 3
      features/step_definitions/settings_steps.rb

@ -47,4 +47,7 @@ end
Given /^users are blocked for ([0-9]+) minutes after ([0-9]+) failed login attempts$/ do |duration, attempts|
Setting.brute_force_block_minutes = duration
Setting.brute_force_block_after_failed_logins = attempts
Given /^we paginate after (\d+) items$/ do |per_page_param|
Setting.per_page_options = "#{per_page_param}, 50, 100"
end

Loading…
Cancel
Save