From 5708856c81e0a23a21193d6efc8543448ea8e28a Mon Sep 17 00:00:00 2001 From: Alex Coles Date: Sat, 28 Jun 2014 11:25:52 +0200 Subject: [PATCH] Remove superfluous begin in test_helper #teardown Signed-off-by: Alex Coles --- test/test_helper.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 4597a78faf..ab41708fcb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -98,14 +98,12 @@ class ActiveSupport::TestCase end def teardown - begin - super - # verifies method invocations - RSpec::Mocks.verify - ensure - # removes all mockings - RSpec::Mocks.teardown - end + super + # verifies method invocations + RSpec::Mocks.verify + ensure + # removes all mockings + RSpec::Mocks.teardown end def log_user(login, password)