mirror of
https://github.com/askn/faker.git
synced 2023-08-10 21:13:01 +03:00
add Hacker
This commit is contained in:
32
spec/hacker_spec.cr
Normal file
32
spec/hacker_spec.cr
Normal file
@ -0,0 +1,32 @@
|
||||
require "./spec_helper"
|
||||
|
||||
describe Faker::Hacker do
|
||||
assert { (Faker::Hacker.phrases.size == 8).should be_true }
|
||||
|
||||
it "phrases" do
|
||||
Faker::Hacker.phrases.each do |phrase|
|
||||
phrase.nil?.should be_false
|
||||
(phrase == "").should be_false
|
||||
end
|
||||
end
|
||||
|
||||
it "noun" do
|
||||
Faker::Hacker.noun.match(/\w+/).should_not eq nil
|
||||
end
|
||||
|
||||
it "abbreviation" do
|
||||
Faker::Hacker.abbreviation.match(/\w+/).should_not eq nil
|
||||
end
|
||||
|
||||
it "adjective" do
|
||||
Faker::Hacker.adjective.match(/\w+/).should_not eq nil
|
||||
end
|
||||
|
||||
it "verb" do
|
||||
Faker::Hacker.verb.match(/\w+/).should_not eq nil
|
||||
end
|
||||
|
||||
it "ingverb" do
|
||||
Faker::Hacker.ingverb.match(/\w+/).should_not eq nil
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user