Sha256: 39e775ef4cc5879238a2af641e414a730961a5e6a7ef43dda2bff00830f3ec2d

Contents?: true

Size: 254 Bytes

Versions: 7

Compression:

Stored size: 254 Bytes

Contents

Given /^I generate (\d+) users$/ do |n|
  1.upto(n.to_i) { |i| User.create! name: "user#{format('%03d', i)}" }
  User.create! name: "admin#{format('%03d', 1)}", role: :admin
  User.create! name: "user#{format('%03d', (n.to_i + 1))}", is_banned: true
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mighty_grid-2.1.1 features/step_definitions/steps.rb
mighty_grid-2.1.0 features/step_definitions/steps.rb
mighty_grid-2.0.0 features/step_definitions/steps.rb
mighty_grid-2.0.0.rc1 features/step_definitions/steps.rb
mighty_grid-1.0.0 features/step_definitions/steps.rb
mighty_grid-0.7.0 features/step_definitions/steps.rb
mighty_grid-0.6.1 features/step_definitions/steps.rb