diff --git a/doc/movies/room.md b/doc/movies/room.md new file mode 100644 index 0000000000..365e1beb15 --- /dev/null +++ b/doc/movies/room.md @@ -0,0 +1,11 @@ +# Faker::Movies::Room + +```ruby +Faker::Movies::Room.actor #=> "Tommy Wiseau" + +Faker::Movies::Room.character #=> "Johnny" + +Faker::Movies::Room.location #=> "Johnny's Apartment" + +Faker::Movies::Room.quote #=> "A-ha-ha-ha! What a story, Mark!" +``` diff --git a/lib/faker/movies/room.rb b/lib/faker/movies/room.rb new file mode 100644 index 0000000000..6a0210bdc7 --- /dev/null +++ b/lib/faker/movies/room.rb @@ -0,0 +1,63 @@ +# frozen_string_literal: true + +module Faker + class Movies + class TheRoom < Base + class << self + ## + # Produces an actor from The Room (2003). + # + # @return [String] + # + # @example + # Faker::Movies::Room.actor #=> "Tommy Wiseau" + # + # @faker.version next + def actor + fetch('room.actors') + end + + ## + # Produces a character from The Room (2003). + # + # @return [String] + # + # @example + # Faker::Movies::Room.character #=> "Johnny" + # + # @faker.version next + def character + fetch('room.characters') + end + + ## + # Produces a location from The Room (2003). + # + # @return [String] + # + # @example + # Faker::Movies::Room.location #=> "Johnny's Apartment" + # + # @faker.version next + def location + fetch('room.locations') + end + + ## + ## + # Produces a quote from The Room (2003). + # + # @return [String] + # + # @example + # Faker::Movies::Room.quote + # #=> "You're lying, I never hit you. You are tearing me apart, Lisa!" + # + # @faker.version next + def quote + fetch('room.quotes') + end + end + end + end +end diff --git a/lib/locales/en/room.yml b/lib/locales/en/room.yml new file mode 100644 index 0000000000..3cd1b49a6e --- /dev/null +++ b/lib/locales/en/room.yml @@ -0,0 +1,68 @@ +en: + faker: + room: + actors: + - Tommy Wiseau + - Juliette Danielle + - Greg Sestero + - Philip Haldiman + - Carolyn Minnott + - Robyn Paris + - Scott Holmes + - Dan Janjigian + - Kyle Vogt + - Greg Ellery + characters: + - Johnny + - Lisa + - Mark + - Denny + - Claudette + - Michelle + - Mike + - Chris-R + - Peter + - Steven + locations: + - Johnny's Place + - Rooftop + - Park + - Alley + - Flower Shop + - Claudette's Place + quotes: + - "Oh hi, Denny" + - "Anything for my princess! Ha-ha-ha-ha." + - "Denny, two's great, but three's a crowd. Ha-ha." + - "Oh hi, Johnny, I didn't know it was you." + - "Here you go, keep the change. Hi doggy!" + - "You're my favorite customer" + - "I just want to talk to Johnny. You look beautiful today. Can I kiss you?" + - "I got the results of the test back. I definitely have breast cancer." + - "Did you, uh, know, that chocolate is the symbol of love?" + - "Where’s my money, Denny?" + - "Denny, what kind of money, just tell me!" + - "What kind of drugs, Denny?" + - "I did not hit her! It’s not true! It’s bullshit! I did not hit her! I did not! Oh, hi Mark." + - "A-ha-ha-ha! What a story, Mark!" + - "You can love someone deep inside your heart, and there is nothing wrong with it. If a lot of people loved each other, the world would be a better place to live." + - "I never hit you. You shouldn’t have any secrets from me. I’m your future husband." + - "Why Lisa, why Lisa, please talk to me, please! You’re part of my life, you are everything, I could not go on without you, Lisa." + - "You’re lying, I never hit you. You are tearing me apart, Lisa!" + - "Do you understand life? Do you?" + - "Oh hi, Mike, what’s new?" + - "Oh hey, Denny." + - "How can they say this about me? I don’t believe it. I show them. I will record everything." + - "You know what they say: love is blind." + - "Ha-ha-ha, chicken, Peter, you’re just a little chicken! Cheep, cheep cheep cheep cheep chee-ee-ee-eep eeeeeeeeeeee!" + - "Oh, hi Denny. Nice tux, you look great." + - "You look great. You look a babyface." + - "Oh hi, Susan." + - "We got a new client at the bank, we make a lot of money." + - "Anyway, how is your sex life?" + - "Oh hi, Claudette. Bye!" + - "You betrayed me, you’re not good, you’re just a chicken, cheep-cheep-cheep-cheep-cheep." + - "It’s not over! Everybody betray me! I fed up with this world!" + - "How could you do this to me?! I gave you seven years of my life! And you betray me." + - "Aughhhhhhhh!!! Everybody betray me. I don’t have a friend in the world." + - "As far as I’m concerned, you can drop off the earth. That’s a promise" diff --git a/test/faker/movies/test_faker_room.rb b/test/faker/movies/test_faker_room.rb new file mode 100644 index 0000000000..e25bff0950 --- /dev/null +++ b/test/faker/movies/test_faker_room.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require_relative '../../test_helper' + +class TestFakerRoom < Test::Unit::TestCase + def setup + @tester = Faker::Movies::TheRoom + end + + def test_actor + assert @tester.actor.match(/\w+/) + end + + def test_character + assert @tester.character.match(/\w+/) + end + + def test_location + assert @tester.location.match(/\w+/) + end + + def test_quote + assert @tester.quote.match(/\w+/) + end +end