Could not find gem 'mocha (~> 1.0.0) ruby'
I have a fresh copy of the 2.5 version, checkout from SVN.
As stated in the RedmineInstall I run bundler to manage gems dependencies
bundle install --without development test
I get the following error
Resolving dependencies... Could not find gem 'mocha (~> 1.0.0) ruby' in the gems available on this machine.
It seems for me that somehow bundler is not excluding test group which introduces higher mocha version.
group :test do gem "shoulda", "~> 3.3.2" gem "mocha", "~> 1.0.0", :require => 'mocha/api' if RUBY_VERSION >= '1.9.3' gem "capybara", "~> 2.1.0" gem "selenium-webdriver" end end
Installing mocha 1.0.0 leads to versions conflict between 0.10.5 and 1.0.0.
Resolving dependencies... Bundler could not find compatible versions for gem "mocha": In Gemfile: shoulda (~> 3.3.2) ruby depends on shoulda-matchers (~> 1.4.1) ruby depends on bourne (~> 1.1.2) ruby depends on mocha (= 0.10.5) ruby mocha (1.0.0)
Environment: Redmine version 2.5.2.stable.13367 Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux] Rails version 3.2.19 Bundler version 1.7.2 Environment production Database adapter Mysql2 SCM: Subversion 1.6.17 Git 184.108.40.206 Filesystem Redmine plugins: no plugin installed