Sha256: 096c809938876c3acd1220736d69a1af36cb6671904926c7dd8c160d38a1fb6c

Contents?: true

Size: 659 Bytes

Versions: 5

Compression:

Stored size: 659 Bytes

Contents

Given 'the following players' do |players|
  player_content = players.hashes.inject('') do |total_content, player|
    total_content << "#{player['name']},#{player['skill']}\n"
  end
  @player_data = write_file('player_data.txt', player_content)
end

When /^I pick the teams$/ do
  run_simple(unescape('football-manager -f player_data.txt'))
end

Then /^each team should have (\d+) players? and (\d+) points?$/ do |number_of_players, points|
  check_both_teams_are_equal(number_of_players, points)
end

Then /^one team should have (\d+) players? and (\d+) points?$/ do |number_of_players, points|
  check_team_has_the_following(number_of_players, points)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
football-manager-1.0.1 features/step-definitions/choose_teams_steps.rb
football-manager-0.1.8 features/step-definitions/choose_teams_steps.rb
football-manager-0.1.7 features/step-definitions/choose_teams_steps.rb
football-manager-0.1.6 features/step-definitions/choose_teams_steps.rb
football-manager-0.1.5 features/step-definitions/choose_teams_steps.rb