From 18cf6373800bf6d55e52d13bc8aafa5a3c0f95f8 Mon Sep 17 00:00:00 2001 From: Clement Ferey Date: Fri, 20 Jan 2023 18:10:27 +0100 Subject: [PATCH 1/3] Rename doc file to match implementation file --- doc/sports/{sports.md => sport.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/sports/{sports.md => sport.md} (100%) diff --git a/doc/sports/sports.md b/doc/sports/sport.md similarity index 100% rename from doc/sports/sports.md rename to doc/sports/sport.md From 1526bee9d63cfd687e6a644f9dfe38a620cca8fc Mon Sep 17 00:00:00 2001 From: Clement Ferey Date: Fri, 20 Jan 2023 18:10:55 +0100 Subject: [PATCH 2/3] Use the right class name in sports doc --- doc/sports/sport.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/sports/sport.md b/doc/sports/sport.md index c2df2045fe..a9a1f325db 100644 --- a/doc/sports/sport.md +++ b/doc/sports/sport.md @@ -1,41 +1,41 @@ -# Faker::Sports +# Faker::Sport ## Conventional (Olympic including Paralympic) Sports ```ruby # Any one of the below four categories: -Faker::Sports.sport #=> "Snowboard" +Faker::Sport.sport #=> "Snowboard" -Faker::Sports.summer_olympics_sport #=> "Triathlon" +Faker::Sport.summer_olympics_sport #=> "Triathlon" -Faker::Sports.winter_olympics_sport #=> "Luge" +Faker::Sport.winter_olympics_sport #=> "Luge" -Faker::Sports.summer_paralympics_sport #=> "Goalball" +Faker::Sport.summer_paralympics_sport #=> "Goalball" -Faker::Sports.winter_paralympics_sport #=> "Wheelchair curling" +Faker::Sport.winter_paralympics_sport #=> "Wheelchair curling" ``` ## Ancient Sports ```ruby -Faker::Sports.ancient_olympics_sport #=> "Chariot racing" +Faker::Sport.ancient_olympics_sport #=> "Chariot racing" # Any modern or ancient olympic sport: -Faker::Sports.sport(include_ancient: true) #=> "Rugby" +Faker::Sport.sport(include_ancient: true) #=> "Rugby" ``` ## Unusual Sports (just for fun) ```ruby -Faker::Sports.unusual_sport #=> "Camel wrestling" +Faker::Sport.unusual_sport #=> "Camel wrestling" # Any modern olympic or unusual sport: -Faker::Sports.sport(include_unusual: true) #=> "Gurning" +Faker::Sport.sport(include_unusual: true) #=> "Gurning" ``` ## Full list ```ruby # Modern, ancient or unusual: -Faker::Sports.sport(include_ancient: true, include_unusual: true) #=> "Powerlifting" +Faker::Sport.sport(include_ancient: true, include_unusual: true) #=> "Powerlifting" ``` From b945501b2a5edf0fff812678a580ba0a802ffd97 Mon Sep 17 00:00:00 2001 From: Clement Ferey Date: Sun, 19 Feb 2023 11:37:31 +0100 Subject: [PATCH 3/3] Rename test file to match implementation --- test/faker/sports/{test_faker_sports.rb => test_faker_sport.rb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename test/faker/sports/{test_faker_sports.rb => test_faker_sport.rb} (95%) diff --git a/test/faker/sports/test_faker_sports.rb b/test/faker/sports/test_faker_sport.rb similarity index 95% rename from test/faker/sports/test_faker_sports.rb rename to test/faker/sports/test_faker_sport.rb index b72f812dab..2871783258 100644 --- a/test/faker/sports/test_faker_sports.rb +++ b/test/faker/sports/test_faker_sport.rb @@ -2,7 +2,7 @@ require_relative '../../test_helper' -class TestFakerSports < Test::Unit::TestCase +class TestFakerSport < Test::Unit::TestCase def setup @tester = Faker::Sport end