Skip to content

Commit

Permalink
If version cake defined add the helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
SebAshton committed Sep 13, 2016
1 parent 867cd46 commit 20d2e66
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@
config.include Spree::Api::TestingSupport::Helpers, type: :controller
config.include Spree::Api::TestingSupport::Setup, type: :controller

if Object.const_defined?('VersionCake')
config.include VersionCake::TestHelpers, type: :controller

config.before(:each, type: :controller) do
set_request_version('', 1)
end
end

config.before(:suite) do
DatabaseCleaner.clean_with(:truncation)
end
Expand Down

0 comments on commit 20d2e66

Please sign in to comment.