Skip to content

Commit

Permalink
Fix rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed May 21, 2018
1 parent 8556b5a commit e1ce62a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/faker/community.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def characters
end

def quotes
fetch('community.quotes')
fetch('community.quotes')
end
end
end
Expand Down
28 changes: 13 additions & 15 deletions test/test_faker_community.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestFakerCommunity < Test::Unit::TestCase

def setup
@tester = Faker::Community
end

def test_character
assert @tester.characters.match(/\w/)
end

def test_quote
assert @tester.quotes.match(/\w/)
end

end
class TestFakerCommunity < Test::Unit::TestCase
def setup
@tester = Faker::Community
end

def test_character
assert @tester.characters.match(/\w/)
end

def test_quote
assert @tester.quotes.match(/\w/)
end
end

0 comments on commit e1ce62a

Please sign in to comment.