Skip to content

Commit

Permalink
Don't include Devise::TestHelper in a helper spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 29, 2016
1 parent df51a67 commit eea6807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/blacklight_helper_spec.rb
Expand Up @@ -4,7 +4,6 @@
describe BlacklightHelper do
include ERB::Util
include BlacklightHelper
include Devise::TestHelpers
def blacklight_config
@config ||= Blacklight::Configuration.new.configure do |config|
config.index.title_field = 'title_display'
Expand All @@ -13,6 +12,7 @@ def blacklight_config
end

before(:each) do
allow(helper).to receive(:current_or_guest_user).and_return(User.new)
allow(helper).to receive(:search_action_path) do |*args|
search_catalog_url *args
end
Expand Down

0 comments on commit eea6807

Please sign in to comment.