diff --git a/api/solidus_api.gemspec b/api/solidus_api.gemspec index 2e10d792b89..f150539a7b2 100644 --- a/api/solidus_api.gemspec +++ b/api/solidus_api.gemspec @@ -18,5 +18,5 @@ Gem::Specification.new do |gem| gem.add_dependency 'solidus_core', gem.version gem.add_dependency 'rabl', ['>= 0.9.4.pre1', '< 0.12.0'] - gem.add_dependency 'versioncake', '~> 2.5' + gem.add_dependency 'versioncake', '~> 3.0' end diff --git a/api/spec/spec_helper.rb b/api/spec/spec_helper.rb index bcf3be19d31..fd707fc7616 100644 --- a/api/spec/spec_helper.rb +++ b/api/spec/spec_helper.rb @@ -61,6 +61,11 @@ Spree::Api::Config[:requires_authentication] = true end + config.include VersionCake::TestHelpers, type: :controller + config.before(:each, type: :controller) do + set_request_version('', 1) + end + config.use_transactional_fixtures = true config.example_status_persistence_file_path = "./spec/examples.txt"