Sha256: 60d7c7d7dc2ef2872c5eaa27523c2f3f27a35eef6dbec068aacb0e936f82272a
Contents?: true
Size: 723 Bytes
Versions: 10
Compression:
Stored size: 723 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') class TestFakerHacker < Test::Unit::TestCase def setup @hacker = Faker::Hacker @phrases = @hacker.phrases end def test_phrases assert @phrases.size == 8 @phrases.each do |phrase| assert !phrase.nil? assert phrase != "" end end def test_noun assert @hacker.noun.match(/\w+/) end def test_abbreviation assert @hacker.abbreviation.match(/\w+/) end def test_adjective assert @hacker.adjective.match(/\w+/) end def test_verb assert @hacker.verb.match(/\w+/) end def test_ingverb assert @hacker.ingverb.match(/\w+/) end end
Version data entries
10 entries across 10 versions & 2 rubygems