Sha256: c46399fec6868f54bf5ccc4c4c8268fbd8accefdae69237b8aa02abd621285a6

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

Given(/^[Tt]he [Pp]layer ["'](.+)["'] is authenticated$/) do |player_name|
  player = MyApp::Player.find_by_name(player_name)
  @handler_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])
    MyApp::Player.create(player_hash)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubypitaya-2.12.0 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb
rubypitaya-2.11.2 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb
rubypitaya-2.11.1 ./lib/rubypitaya/app-template/features/step_definitions/application_steps.rb