Skip to content

Commit

Permalink
Upgrade versioncake to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Feb 26, 2016
1 parent c8c1a85 commit 076f56f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/solidus_api.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions api/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 076f56f

Please sign in to comment.