Sha256: 8e915ab509b748ac369c01a80939d852099c647b0d3d03607619fc72fb41974c

Contents?: true

Size: 379 Bytes

Versions: 29

Compression:

Stored size: 379 Bytes

Contents

Given(/^the following Player[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

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

Version data entries

29 entries across 25 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.5 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.4 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.3 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.2 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.1 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.19.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.18.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.17.2 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.17.1 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.17.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.16.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.15.3 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.15.2 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.15.1 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.15.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.14.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.13.1 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.13.0 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/features/step_definitions/player_steps.rb