diff --git a/README.md b/README.md index f1ed1c78eb..a3ad9b3016 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Contents - [Faker::Ancient](doc/ancient.md) - [Faker::App](doc/app.md) - [Faker::Appliance](doc/appliance.md) + - [Faker::Artist](doc/artist.md) - [Faker::AquaTeenHungerForce](doc/aqua_teen_hunger_force.md) - [Faker::Avatar](doc/avatar.md) - [Faker::BackToTheFuture](doc/back_to_the_future.md) @@ -37,6 +38,7 @@ Contents - [Faker::Book](doc/book.md) - [Faker::Boolean](doc/boolean.md) - [Faker::BossaNova](doc/bossa_nova.md) + - [Faker::BreakingBad](doc/breaking_bad.md) - [Faker::Business](doc/business.md) - [Faker::Cannabis](doc/cannabis.md) - [Faker::Cat](doc/cat.md) @@ -48,48 +50,54 @@ Contents - [Faker::Community](doc/community.md) - [Faker::Company](doc/company.md) - [Faker::Compass](doc/compass.md) - - [Faker::Currency](doc/currency.md) - [Faker::Crypto](doc/crypto.md) + - [Faker::Currency](doc/currency.md) - [Faker::Date](doc/date.md) - [Faker::Demographic](doc/demographic.md) - [Faker::Dessert](doc/dessert.md) - [Faker::Dog](doc/dog.md) - [Faker::Dota](doc/dota.md) - - [Faker::DragonBall](doc/dragon_ball.md) - [Faker::DrWho](doc/dr_who.md) + - [Faker::DragonBall](doc/dragon_ball.md) - [Faker::DumbAndDumber](doc/dumb_and_dumber.md) - [Faker::Dune](doc/dune.md) - [Faker::Educator](doc/educator.md) - [Faker::ElderScrolls](doc/elder_scrolls.md) + - [Faker::Esport](doc/esport.md) - [Faker::Fallout](doc/fallout.md) - [Faker::FamilyGuy](doc/family_guy.md) + - [Faker::FamousLastWords](doc/famous_last_words.md) - [Faker::File](doc/file.md) - [Faker::Fillmurray](doc/fillmurray.md) + - [Faker::Finance](doc/finance.md) - [Faker::Food](doc/food.md) - [Faker::Football](doc/football.md) - [Faker::Friends](doc/friends.md) + - [Faker::FunnyName](doc/funny_name.md) - [Faker::GameOfThrones](doc/game_of_thrones.md) - [Faker::Gender](doc/gender.md) - [Faker::Hacker](doc/hacker.md) - [Faker::HarryPotter](doc/harry_potter.md) - [Faker::HeyArnold](doc/hey_arnold.md) - [Faker::Hipster](doc/hipster.md) + - [Faker::HitchhikersGuideToTheGalaxy](doc/hitchhikers_guide_to_the_galaxy.md) - [Faker::Hobbit](doc/hobbit.md) - [Faker::HowIMetYourMother](doc/how_i_met_your_mother.md) - - [Faker::HitchhikersGuideToTheGalaxy](doc/hitchhikers_guide_to_the_galaxy.md) - [Faker::IDNumber](doc/id_number.md) - [Faker::Internet](doc/internet.md) - [Faker::Job](doc/job.md) - [Faker::Kpop](doc/kpop.md) - [Faker::LeagueOfLegends](doc/league_of_legends.md) + - [Faker::Lebowski](doc/lebowski.md) - [Faker::LordOfTheRings](doc/lord_of_the_rings.md) + - [Faker::Lorem](doc/lorem.md) - [Faker::LoremFlickr](doc/lorem_flickr.md) - [Faker::LoremPixel](doc/lorem_pixel.md) - - [Faker::Lorem](doc/lorem.md) - [Faker::Lovecraft](doc/lovecraft.md) - [Faker::Markdown](doc/markdown.md) - [Faker::Matz](doc/matz.md) - [Faker::Measurement](doc/measurement.md) + - [Faker::MichaelScott](doc/michael_scott.md) - [Faker::MostInterestingManInTheWorld](doc/most_interesting_man_in_the_world.md) - [Faker::Movie](doc/movie.md) - [Faker::Music](doc/music.md) diff --git a/doc/address.md b/doc/address.md index 0157aa8dce..6b82459d45 100644 --- a/doc/address.md +++ b/doc/address.md @@ -43,4 +43,6 @@ Faker::Address.latitude #=> "-58.17256227443719" Faker::Address.longitude #=> "-156.65548382095133" +Faker::Address.full_address #=> "282 Kevin Brook, Imogeneborough, CA 58517" + ``` diff --git a/doc/aqua_teen_hunger_force.md b/doc/aqua_teen_hunger_force.md index f4ddc0bcbd..2d3908784e 100644 --- a/doc/aqua_teen_hunger_force.md +++ b/doc/aqua_teen_hunger_force.md @@ -2,3 +2,4 @@ ```ruby Faker::AquaTeenHungerForce.character #=> "Master Shake" +``` \ No newline at end of file diff --git a/doc/artist.md b/doc/artist.md new file mode 100644 index 0000000000..d84b42dea6 --- /dev/null +++ b/doc/artist.md @@ -0,0 +1,7 @@ +# Faker::Artist + +Available since version 1.8.8. + +```ruby +Faker::Artist.name #=> "Michelangelo" +``` diff --git a/doc/bitcoin.md b/doc/bitcoin.md index a3b63a313a..289e51cba1 100644 --- a/doc/bitcoin.md +++ b/doc/bitcoin.md @@ -2,5 +2,6 @@ ```ruby Faker::Bitcoin.address #=> "1HUoGjmgChmnxxYhz87YytV4gVjfPaExmh" + Faker::Bitcoin.testnet_address #=> "msHGunDvoEwmVFXvd2Bub1SNw5RP1YHJaf" ``` diff --git a/doc/bossa_nova.md b/doc/bossa_nova.md index 05ff8611fe..3675799d53 100644 --- a/doc/bossa_nova.md +++ b/doc/bossa_nova.md @@ -2,5 +2,6 @@ ```ruby Faker::BossaNova.artist #=> "Tom Jobin" + Faker::BossaNova.song #=> "Chega de Saudade" ``` diff --git a/doc/breaking_bad.md b/doc/breaking_bad.md new file mode 100644 index 0000000000..36d59fa200 --- /dev/null +++ b/doc/breaking_bad.md @@ -0,0 +1,9 @@ +# Faker::BreakingBad + +Available since version 1.8.8. + +```ruby +Faker::BreakingBad.character #=> "Walter White" + +Faker::BreakingBad.episode #=> "Cancer Man" +``` diff --git a/doc/commerce.md b/doc/commerce.md index 72798873cf..7625697a0c 100644 --- a/doc/commerce.md +++ b/doc/commerce.md @@ -13,10 +13,12 @@ Faker::Commerce.material #=> "Steel" Faker::Commerce.product_name #=> "Practical Granite Shirt" Faker::Commerce.price #=> "44.6" +Faker::Commerce.price(range = 0..10.0, as_string = false) #=> "2.18" # Generate a random promotion code. # Optional argument digits = 6 for number of random digits in suffix Faker::Commerce.promotion_code #=> "AmazingDeal829102" +Faker::Commerce.promotion_code(digits = 2) #=> "AmazingPrice57" Faker::Commerce.material #=> "Plastic" ``` diff --git a/doc/community.md b/doc/community.md index 23d21a8ff2..5f806743fb 100644 --- a/doc/community.md +++ b/doc/community.md @@ -3,5 +3,5 @@ ```ruby Faker::Community.characters #=> "Jeff Winger" -Faker::Community.quote #=> I fear a political career could shine a negative light on my drug dealing." +Faker::Community.quotes #=> I fear a political career could shine a negative light on my drug dealing." ``` diff --git a/doc/currency.md b/doc/currency.md index 4895dfd946..033a654ab7 100644 --- a/doc/currency.md +++ b/doc/currency.md @@ -6,5 +6,4 @@ Faker::Currency.name #=> "Swedish Krona" Faker::Currency.code #=> "USD" Faker::Currency.symbol #=> "$" - ``` diff --git a/doc/dota.md b/doc/dota.md index 4d45eea848..081cf82d6d 100644 --- a/doc/dota.md +++ b/doc/dota.md @@ -15,4 +15,5 @@ Faker::Dota.player #=> "Dendi" # Random quote Faker::Dota.quote #=> "Easy now, this stuff is explosive!" +Faker::Dota.quote(hero = 'alchemist') #=> "Better living through alchemy!" ``` \ No newline at end of file diff --git a/doc/dune.md b/doc/dune.md index 7a23ebfc1a..9e21a14aaf 100644 --- a/doc/dune.md +++ b/doc/dune.md @@ -3,10 +3,16 @@ ```ruby Faker::Dune.character #=> "Leto Atreides" + Faker::Dune.title #=> "Duke" + Faker::Dune.planet #=> "Caladan" + Faker::Dune.quote #=> "A dead man, surely, no longer requires that water." + Faker::Dune.quote("baron_harkonnen") #=> "He who controls the spice, controls the universe!" + Faker::Dune.saying #=> "You do not beg the sun for mercy." + Faker::Dune.saying("fremen") #=> "May thy knife chip and shatter." ``` diff --git a/doc/esport.md b/doc/esport.md new file mode 100644 index 0000000000..1df2c94b9b --- /dev/null +++ b/doc/esport.md @@ -0,0 +1,18 @@ +# Faker::Esport + +```ruby +# Random player +Faker::Esport.player #=> "Crimsix" + +# Random team +Faker::Esport.team #=> "CLG" + +# Random league +Faker::Esport.league #=> "IEM" + +# Random event +Faker::Esport.event #=> "ESL Cologne" + +# Random game +Faker::Esport.game #=> "Dota2" +``` \ No newline at end of file diff --git a/doc/finance.md b/doc/finance.md new file mode 100644 index 0000000000..3fd94575a7 --- /dev/null +++ b/doc/finance.md @@ -0,0 +1,8 @@ +# Faker::Finance + +```ruby +# Random credit_card +Faker::Finance.credit_card #=> "3018-348979-1853" +Faker::Finance.credit_card(:mastercard) #=> "6771-8921-2291-6236" +Faker::Finance.credit_card(:mastercard, :visa) #=> "4448-8934-1277-7195" +``` \ No newline at end of file diff --git a/doc/food.md b/doc/food.md index d7057de173..4c27a73334 100644 --- a/doc/food.md +++ b/doc/food.md @@ -20,5 +20,4 @@ Faker::Food.measurement #=> "1/4 tablespoon" Faker::Food.metric_measurement #=> "centiliter" - ``` diff --git a/doc/game_of_thrones.md b/doc/game_of_thrones.md index d117d0e8e4..7fd5c3debc 100644 --- a/doc/game_of_thrones.md +++ b/doc/game_of_thrones.md @@ -9,5 +9,7 @@ Faker::GameOfThrones.house #=> "Stark" Faker::GameOfThrones.city #=> "Lannisport" +Faker::GameOfThrones.quote #=> "Never forget who you are. The rest of the world won't. Wear it like an armor and it can never be used against you." + Faker::GameOfThrones.dragon #=> "Drogon" ``` diff --git a/doc/gender.md b/doc/gender.md index 9270d667d2..b54c8962ea 100644 --- a/doc/gender.md +++ b/doc/gender.md @@ -2,5 +2,6 @@ ```ruby Faker::Gender.type #=> "Non-binary" + Faker::Gender.binary_type #=> "Female" ``` diff --git a/doc/hey_arnold.md b/doc/hey_arnold.md index 4cb381df69..b2c01dd082 100644 --- a/doc/hey_arnold.md +++ b/doc/hey_arnold.md @@ -9,4 +9,5 @@ Faker::HeyArnold.character #=> "Arnold" Faker::HeyArnold.location #=> "Big Bob's Beeper Emporium" Faker::HeyArnold.quote #=> "Stoop Kid's afraid to leave his stoop!" + ``` diff --git a/doc/internet.md b/doc/internet.md index 8fe955984d..72ebaa470d 100644 --- a/doc/internet.md +++ b/doc/internet.md @@ -42,8 +42,6 @@ Faker::Internet.password(10, 20, true, true) #=> "*%NkOnJsH4" Faker::Internet.domain_name #=> "effertz.info" -Faker::Internet.fix_umlauts('äöüß') #=> "aeoeuess" - Faker::Internet.domain_word #=> "haleyziemann" Faker::Internet.domain_suffix #=> "info" diff --git a/doc/kpop.md b/doc/kpop.md index b6edbe8829..adcd83d5c2 100644 --- a/doc/kpop.md +++ b/doc/kpop.md @@ -1,6 +1,7 @@ # Faker::Kpop ```ruby + Faker::Kpop.i_groups # 1990's og groups => "Seo Taiji and Boys" Faker::Kpop.ii_groups # 2000's groups => "Girls' Generation" diff --git a/doc/lebowski.md b/doc/lebowski.md new file mode 100644 index 0000000000..b2c6a16a21 --- /dev/null +++ b/doc/lebowski.md @@ -0,0 +1,11 @@ +# Faker::Lebowski + +Available since version 1.8.8. + +```ruby +Faker::Lebowski.actor #=> "John Goodman" + +Faker::Lebowski.character #=> "Jackie Treehorn" + +Faker::Lebowski.quote #=> "Forget it, Donny, you're out of your element!" +``` diff --git a/doc/lorem.md b/doc/lorem.md index f069741b24..2fc080ff41 100644 --- a/doc/lorem.md +++ b/doc/lorem.md @@ -41,4 +41,8 @@ Faker::Lorem.paragraph(2, true, 4) #=> "Vomito unde uxor annus. Et patior utilis Faker::Lorem.paragraphs #=> ["Dolores quis quia ad quo voluptates. Maxime delectus totam numquam. Necessitatibus vel atque qui dolore.", "Id neque nemo. Dolores iusto facere est ad. Accusamus ipsa dolor ut.", "Et officiis ut hic. Sunt asperiores minus distinctio debitis ipsa dolor. Minima eos deleniti."] Faker::Lorem.paragraphs(1) #=> ["Labore voluptas sequi. Ratione nulla eaque quia molestiae fugit. At quam laboriosam aut ut dignissimos."] Faker::Lorem.paragraphs(1, true) #=> ["Depulso animi cunctatio amicitia adficio. Vester viduo qui despirmatio voluptas. Validus laudantium adopto ut agnitio venustas. Aer arcus odio esse."] + +# Optional arguments: question_count = 3, supplemental = false +Faker::Lorem.question #=> "Aliquid culpa aut ipsam unde ullam labore?" +Faker::Lorem.questions(3) #=> ["Necessitatibus deserunt animi?", "At hic dolores autem consequatur ut?", "Aliquam velit ex adipisci voluptatem placeat?"] ``` diff --git a/doc/measurement.md b/doc/measurement.md index 013acbcfa0..a3cd7a975c 100644 --- a/doc/measurement.md +++ b/doc/measurement.md @@ -1,8 +1,8 @@ # Faker::Measurement -# For each, if you don't pass in an integer or float, it randomly selects an integer between 1 and 10. -# If you pass in "none", it returns the singular version of the measurement unit, without a number. -# If you pass in "all", it returns the plural version of the measurement unit, without a number. +### For each, if you don't pass in an integer or float, it randomly selects an integer between 1 and 10. +### If you pass in "none", it returns the singular version of the measurement unit, without a number. +### If you pass in "all", it returns the plural version of the measurement unit, without a number. ```ruby Faker::Measurement.height #=> "6 inches" diff --git a/lib/faker/company.rb b/lib/faker/company.rb index 514a01c5bf..8daaec5841 100644 --- a/lib/faker/company.rb +++ b/lib/faker/company.rb @@ -43,6 +43,14 @@ def logo "https://pigment.github.io/fake-logos/logos/medium/color/#{rand_num}.png" end + def type + fetch('company.type') + end + + def profession + fetch('company.profession') + end + # rubocop:disable Style/AsciiComments # Get a random Spanish organization number. See more here https://es.wikipedia.org/wiki/Número_de_identificación_fiscal # rubocop:enable Style/AsciiComments @@ -93,10 +101,6 @@ def australian_business_number (99 - (abn_checksum(abn) % 89)).to_s + base end - def profession - fetch('company.profession') - end - # Get a random Polish taxpayer identification number More info https://pl.wikipedia.org/wiki/NIP def polish_taxpayer_identification_number result = [] diff --git a/lib/locales/en/lord_of_the_rings.yml b/lib/locales/en/lord_of_the_rings.yml index 898fb5c59e..eaccc310bd 100644 --- a/lib/locales/en/lord_of_the_rings.yml +++ b/lib/locales/en/lord_of_the_rings.yml @@ -3,4 +3,4 @@ en: lord_of_the_rings: characters: ["Frodo Baggins", "Gandalf the Grey", "Samwise Gamgee", "Meriadoc Brandybuck", "Peregrin Took", "Aragorn", "Legolas", "Gimli", "Boromir", "Sauron", "Gollum", "Bilbo Baggins", "Tom Bombadil", "Glorfindel", "Elrond", "Arwen Evenstar", "Galadriel", "Saruman the White", "Éomer", "Théoden", "Éowyn", "Grìma Wormtongue", "Shadowfax", "Treebeard", "Quickbeam", "Shelob", "Faramir", "Denethor", "Beregond", "Barliman Butterbur"] locations: ["Aglarond", "Aldburg", "Andustar", "Angband", "Argonath", "Bag End", "Barad-dûr", "Black Gate", "Bridge of Khazad-dûm", "Carchost", "Cirith Ungol", "Coldfells", "Crack of Doom", "Dark Land", "Dol Guldur", "Dome of Stars", "Doors of Durin", "Doriath", "East Beleriand", "Eastfarthing", "East Road", "Eithel Sirion", "Elostirion", "Enchanted Isles", "Endless Stair", "Eä", "Falls of Rauros", "Fens of Serech", "Field of Celebrant", "Fords of Isen", "The Forsaken Inn", "Gap of Rohan", "Gladden Fields", "Gorgoroth", "Greenway", "Haudh-en-Nirnaeth", "Haven of the Eldar", "Helm's Deep", "Henneth Annûn", "Hobbit-hole", "Houses of Healing", "Hyarnustar", "Ilmen", "Inn of the Prancing Pony", "Isengard", "Isenmouthe", "Isle of Balar", "Land of the Sun", "Losgar", "Luthany", "Lothlorièn", "Maglor's Gap", "Marish", "Meduseld", "Minas Tirith", "Minhiriath", "Máhanaxar", "Narchost", "Nargothrond", "Núath", "Old Ford", "Old Forest", "Old Forest Road", "Orthanc", "Parth Galen", "Paths of the Dead", "Pelennor Fields", "Rath Dínen", "Regions of the Shire", "Rivendell", "The Rivers and Beacon-Hills of Gondor", "Sarn Ford", "Taur-en-Faroth", "Taur-im-Duinath", "Timeless Halls", "Tol Brandir", "Tol Galen", "Tol Morwen", "Tol-in-Gaurhoth", "Tumladen", "Utumno", "Vaiya", "Vista", "The Void", "Warning beacons of Gondor"] - quotes: ["Often does hatred hurt itself!", "Go now, and die in what way seems best to you.", "Memory is not what the heart desires. That is only a mirror....", "Dwarves’ tongues run on when speaking of their handiwork, they say.", "But all’s well as ends well", "Sing, all ye children of the West", "...and all the stars flowered in the sky.", "Clothes are but little loss, if you escape from drowning.", "The wolf that one hears is worse than the orc that one fears. - Boromir", "I don't keep water in my pockets.", "For he gave it up in the end of his own accord: an important point. No,", "I could not 'make' you--except by force, which would break your mind.", "Their faces were as a rule good-natured rather than beautiful.", "The Lord of the Ringwraiths had met his doom.", "Many that live deserve death. And some that die deserve life", "Short cuts make delays, but inns make longer ones.", "But where the warg howls, there also the orc prowls. - Aragorn", "In winter here no heart could mourn for summer or for spring.","his old life lay behind in the mists, dark adventure lay in front.", "I sang of leaves, of leaves of gold, and leaves of gold there grew", "Someone else always has to carry on the story.", "It's the job that's never started as takes longest to finish.", "Moonlight drowns out all but the brightest stars.", "Fear nothing! Have peace until the morning! Heed no nightly noises!", "I’ll get there, if I leave everything but my bones behind,", "NO ADMITTANCE EXCEPT ON PARTY BUSINESS.", "Real names tell you the story of the things they belong to", "Deeds will not be less valiant because they are unpraised.", "Even the smallest person can change the course of the future.", "Who knows? Have patience. Go where you must go, and hope!", "Yet dawn is ever the hope of men,’ said Aragorn.", "You will soon be well, if I do not talk you to death.", "Memory is not what the heart desires. That is only a mirror,", "You have shown your usual cunning in getting up just in time for a meal.", "The great storm is coming, but the tide has turned.", "...as young and as ancient as Spring....", "Why couldn’t he stop talking and let them drink his health?", "Not all those who wander are lost", "But in this at least thou shalt not defy my will: to rule my own end.", "I look foul and feel fair.","It's the job that's never started as takes longest to finish.", "Moonlight drowns out all but the brightest stars.", "I didn't think it would end this way.", "Home is behind, the world ahead", "All's well that ends better.", "I want to be a healer, and love all things that grow and are not barren.", "Where there's life there's hope, and need of vittles.", "A hunted man sometimes wearies of distrust and longs for friendship.", "The leaves were long, the grass was green", "Begone, foul dwimmerlaik, lord of carrion! Leave the dead in peace!", "The world is indeed full of peril and in it there are many dark places.", "To the sea, to the sea! The white gulls are crying", "Do not scorn pity that is the gift of a gentle heart, Éowyn!", "I wish the Ring had never come to me. I wish none of this had happened."] + quotes: ["Often does hatred hurt itself!", "Go now, and die in what way seems best to you.", "Memory is not what the heart desires. That is only a mirror....", "Dwarves’ tongues run on when speaking of their handiwork, they say.", "But all’s well as ends well", "Sing, all ye children of the West", "...and all the stars flowered in the sky.", "Clothes are but little loss, if you escape from drowning.", "The wolf that one hears is worse than the orc that one fears. - Boromir", "I don't keep water in my pockets.", "For he gave it up in the end of his own accord: an important point. No,", "I could not 'make' you--except by force, which would break your mind.", "Their faces were as a rule good-natured rather than beautiful.", "The Lord of the Ringwraiths had met his doom.", "Many that live deserve death. And some that die deserve life", "Short cuts make delays, but inns make longer ones.", "But where the warg howls, there also the orc prowls. - Aragorn", "In winter here no heart could mourn for summer or for spring.","his old life lay behind in the mists, dark adventure lay in front.", "I sang of leaves, of leaves of gold, and leaves of gold there grew", "Someone else always has to carry on the story.", "It's the job that's never started as takes longest to finish.", "Moonlight drowns out all but the brightest stars.", "Fear nothing! Have peace until the morning! Heed no nightly noises!", "I’ll get there, if I leave everything but my bones behind,", "NO ADMITTANCE EXCEPT ON PARTY BUSINESS.", "Real names tell you the story of the things they belong to", "Deeds will not be less valiant because they are unpraised.", "Even the smallest person can change the course of the future.", "Who knows? Have patience. Go where you must go, and hope!", "Yet dawn is ever the hope of men,’ said Aragorn.", "You will soon be well, if I do not talk you to death.", "Memory is not what the heart desires. That is only a mirror,", "You have shown your usual cunning in getting up just in time for a meal.", "The great storm is coming, but the tide has turned.", "...as young and as ancient as Spring....", "Why couldn’t he stop talking and let them drink his health?", "Not all those who wander are lost", "But in this at least thou shalt not defy my will: to rule my own end.", "I look foul and feel fair.","It's the job that's never started as takes longest to finish.", "Moonlight drowns out all but the brightest stars.", "I didn't think it would end this way.", "Home is behind, the world ahead", "All's well that ends better.", "I want to be a healer, and love all things that grow and are not barren.", "Where there's life there's hope, and need of vittles.", "A hunted man sometimes wearies of distrust and longs for friendship.", "The leaves were long, the grass was green", "Begone, foul dwimmerlaik, lord of carrion! Leave the dead in peace!", "The world is indeed full of peril and in it there are many dark places.", "To the sea, to the sea! The white gulls are crying", "Do not scorn pity that is the gift of a gentle heart, Éowyn!", "I wish the Ring had never come to me. I wish none of this had happened."] diff --git a/test/test_faker_company.rb b/test/test_faker_company.rb index d76a386f2a..5ced3b3ee6 100644 --- a/test/test_faker_company.rb +++ b/test/test_faker_company.rb @@ -21,6 +21,10 @@ def test_buzzword assert @tester.buzzword.match(/\w+\.?/) end + def test_type + assert @tester.type.match(/\w+/) + end + def test_spanish_organisation_number org_no = @tester.spanish_organisation_number assert org_no.match(/\D\d{7}/)