Skip to content

Commit

Permalink
fix rspec html matchers configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
victorsosa committed May 7, 2015
1 parent 963b22f commit c47e814
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/helpers/navbar_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
require 'abstract_controller'
require 'action_controller'
require 'mocha/api'
require 'pry'
require 'pry'

RSpec.configure do |config|
config.include RSpecHtmlMatchers
end

0 comments on commit c47e814

Please sign in to comment.