diff --git a/app/helpers/navbar_helper.rb b/app/helpers/navbar_helper.rb index eaa0c650..e012ec41 100644 --- a/app/helpers/navbar_helper.rb +++ b/app/helpers/navbar_helper.rb @@ -19,9 +19,9 @@ def menu_item(name=nil, path="#", *args, &block) content_tag :li, :class => is_active?(path, options) do if block_given? link_to path, options, &block - else + else link_to name, path, options, &block - end + end end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3122f847..f20d2950 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,4 +14,8 @@ require 'abstract_controller' require 'action_controller' require 'mocha/api' -require 'pry' \ No newline at end of file +require 'pry' + +RSpec.configure do |config| + config.include RSpecHtmlMatchers +end