Bug #17494
closedTest fails because of the stray `end` in the test file
Description
I get the following stacktrace while executing a test suite:
SyntaxError: /home/abhay/devel/foreman/test/models/nics/managed_test.rb:159: syntax error, unexpected keyword_end, expecting end-of-input
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:244:in `rescue in load_dependency'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:237:in `load_dependency'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:114:in `block (3 levels) in define'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:114:in `each'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:114:in `block (2 levels) in define'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:113:in `each'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:113:in `block in define'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/sub_test_task.rb:20:in `invoke_rake_task'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/railties-4.2.7.1/lib/rails/test_unit/testing.rake:8:in `block in <top (required)>'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/home/abhay/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
-e:1:in `<main>'
There is a redundant `end` statement present at test/models/nics/managed_test.rb:103 in the foreman code