Sha256: 37529075be1bc2b67eb844f413a1c3229624501c43aeb28227b99f286ae0371b

Contents?: true

Size: 395 Bytes

Versions: 3

Compression:

Stored size: 395 Bytes

Contents

Given(/^[Tt]he [Pp]layer ["'](.+)["'] is authenticated$/) do |player_name|
  player = Player.find_by_name(player_name)
  @app_helper.authenticate(player.user_id)
end

Given(/^[Tt]he following [Pp]layer[s]*[:]*$/) do |table|
  player_hashes = table.hashes
  player_hashes.each do |player_hash|
    player_hash[:user] = User.new(id: player_hash[:user_id])
    Player.create(player_hash)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubypitaya-3.11.0 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb
rubypitaya-3.10.0 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb
rubypitaya-3.9.1 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb