From e1ce62a374fb97c9bde2b248cd653d2b19ba09d1 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sun, 20 May 2018 23:02:12 -0300 Subject: [PATCH] Fix rubocop violations --- lib/faker/community.rb | 2 +- test/test_faker_community.rb | 28 +++++++++++++--------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/lib/faker/community.rb b/lib/faker/community.rb index 4ccc8f81a6..f2bf67845b 100644 --- a/lib/faker/community.rb +++ b/lib/faker/community.rb @@ -6,7 +6,7 @@ def characters end def quotes - fetch('community.quotes') + fetch('community.quotes') end end end diff --git a/test/test_faker_community.rb b/test/test_faker_community.rb index 876bf1a5de..f9342a2c1f 100644 --- a/test/test_faker_community.rb +++ b/test/test_faker_community.rb @@ -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