Fix tests view for smart listing

This commit is contained in:
Xavier J 2016-01-11 14:10:41 +01:00
parent ad300319f4
commit 64909e85a4
3 changed files with 36 additions and 6 deletions

View file

@ -51,6 +51,17 @@ SIADETOKEN = :valid_token unless defined? SIADETOKEN
include Warden::Test::Helpers
include SmartListing::Helper
include SmartListing::Helper::ControllerExtensions
module SmartListing
module Helper
def view_context
'mock'
end
end
end
WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config|