File tree Expand file tree Collapse file tree 3 files changed +42
-42
lines changed Expand file tree Collapse file tree 3 files changed +42
-42
lines changed Original file line number Diff line number Diff line change
1
+ # Faker::Sport
2
+
3
+ ## Conventional (Olympic including Paralympic) Sports
4
+
5
+ ``` ruby
6
+ # Any one of the below four categories:
7
+ Faker ::Sport .sport # => "Snowboard"
8
+
9
+ Faker ::Sport .summer_olympics_sport # => "Triathlon"
10
+
11
+ Faker ::Sport .winter_olympics_sport # => "Luge"
12
+
13
+ Faker ::Sport .summer_paralympics_sport # => "Goalball"
14
+
15
+ Faker ::Sport .winter_paralympics_sport # => "Wheelchair curling"
16
+ ```
17
+
18
+ ## Ancient Sports
19
+
20
+ ``` ruby
21
+ Faker ::Sport .ancient_olympics_sport # => "Chariot racing"
22
+
23
+ # Any modern or ancient olympic sport:
24
+ Faker ::Sport .sport(include_ancient: true ) # => "Rugby"
25
+ ```
26
+
27
+ ## Unusual Sports (just for fun)
28
+
29
+ ``` ruby
30
+ Faker ::Sport .unusual_sport # => "Camel wrestling"
31
+
32
+ # Any modern olympic or unusual sport:
33
+ Faker ::Sport .sport(include_unusual: true ) # => "Gurning"
34
+ ```
35
+
36
+ ## Full list
37
+
38
+ ``` ruby
39
+ # Modern, ancient or unusual:
40
+ Faker ::Sport .sport(include_ancient: true , include_unusual: true ) # => "Powerlifting"
41
+ ```
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
require_relative '../../test_helper'
4
4
5
- class TestFakerSports < Test ::Unit ::TestCase
5
+ class TestFakerSport < Test ::Unit ::TestCase
6
6
def setup
7
7
@tester = Faker ::Sport
8
8
end
You can’t perform that action at this time.
0 commit comments