views:

34

answers:

0

Hello!

    /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
no such file to load -- ZenTest
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/soroush/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:208:in `load'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in `load_gems'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in `each'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:307:in `load_gems'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:169:in `process'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/home/soroush/projects/x/config/environment.rb:9
/home/soroush/projects/x/spec/spec_helper.rb:4:in `require'
/home/soroush/projects/x/spec/spec_helper.rb:4
./spec/models/feed_item_spec.rb:1:in `require'
./spec/models/feed_item_spec.rb:1
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `load'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `load_files'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `each'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `load_files'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in `run_examples'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in `run'
/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/bin/spec:5
/home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:101:in `specification': can't activate , already activated cucumber-0.9.2 (Gem::Exception)
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:159:in `loaded?'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:331:in `check_gem_dependencies'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:331:in `reject'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:331:in `check_gem_dependencies'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:170:in `process'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
    from /home/soroush/.gem/ruby/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
    from /home/soroush/projects/x/config/environment.rb:9
    from /home/soroush/projects/x/spec/spec_helper.rb:4:in `require'
    from /home/soroush/projects/x/spec/spec_helper.rb:4
    from ./spec/models/feed_item_spec.rb:1:in `require'
    from ./spec/models/feed_item_spec.rb:1
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `load'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:15:in `load_files'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `each'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/example_group_runner.rb:14:in `load_files'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/options.rb:133:in `run_examples'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/lib/spec/runner/command_line.rb:9:in `run'
    from /home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/bin/spec:5
rake aborted!
Command /usr/bin/ruby1.8 -I"lib"  "/home/soroush/.gem/ruby/1.8/gems/rspec-1.3.0/bin/spec" "spec/models/feed_item_spec.rb" "spec/models/social_post/media_index_spec.rb" "spec/models/social_post/microblog_media_index_spec.rb" "spec/models/variable_spec.rb" "spec/models/variable_option_spec.rb" "spec/models/social_post_spec.rb" "spec/models/statistic_filter_spec.rb" "spec/models/user_spec.rb" "spec/models/invite_spec.rb" "spec/models/membership_spec.rb" "spec/models/account_spec.rb" "spec/models/period_spec.rb" "spec/models/event_spec.rb" "spec/models/editorial/public_relations_value_spec.rb" "spec/models/editorial/media_index_spec.rb" "spec/models/editorial/legacy_public_relations_value_spec.rb" "spec/models/feed_spec.rb" "spec/models/report_page_spec.rb" "spec/models/source_spec.rb" "spec/models/report_spec.rb" "spec/models/editorial_spec.rb" "spec/models/account_preference_spec.rb" "spec/models/statistic_spec.rb" "spec/uploaders/logo_uploader_spec.rb" "spec/helpers/chart_helper_spec.rb" "spec/lib/importers/sources/ods_importer_spec.rb" "spec/lib/core_ext/numeric_spec.rb" "spec/lib/core_ext/date_spec.rb" --options "/home/soroush/projects/x/spec/spec.opts" failed

I first got this output, then ran gem install ZenTest, but then got the exact same error again running rake spec cucumber.

Anyone that has any idea of what's going wrong? Great thanks in advance

Regards, Emil

UPDATE: My environment.rb looks like this:

# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.gem 'i18n', :lib => 'formtastic', :version => '=0.3.7'
  config.gem 'formtastic', :lib => 'formtastic', :version => '=0.9.8'
  config.gem 'devise', :version => '=0.7.5'
  config.gem 'inherited_resources', :version => '=1.0.6'
  config.gem 'carrierwave', :version => '=0.4.5'
  config.gem 'will_paginate', :version => '=2.3.12'
  config.gem 'validates_timeliness', :version => '=2.3.1'
  config.gem 'sequel', :version => '=3.10.0'
  config.gem 'rails_sequel', :version => '=0.2.1'
  config.gem 'prawn', :version => '=0.8.4'
  config.gem 'prawn-fast-png', :lib => 'prawn/fast_png', :version => '=0.2.1'
  config.gem 'gruff', :version => '=0.3.6'
  config.gem 'nokogiri', :version => '=1.4.1'
  config.gem 'feed_me', :version => '=0.7.0'
  config.gem 'state_machine', :lib => 'state_machine', :version => '=0.8.1'
  config.gem 'savon', :version => '=0.7.6'
  config.gem 'yalab-ruby-ods', :lib => 'ods', :version => '=0.0.0'
  config.gem 'mysql'
  config.gem 'ramhoj-scruffy', :lib => 'scruffy', :version => '>= 0.2.8'

  # Settings in config/environments/* take precedence over those specified here.
  # Application configuration should go into files in config/initializers
  # -- all .rb files in that directory are automatically loaded.

  # Add additional load paths for your own custom dirs
  # config.load_paths += %W( #{RAILS_ROOT}/extras )

  # Specify gems that this application depends on and have them installed with rake gems:install
  # config.gem "bj"
  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
  # config.gem "sqlite3-ruby", :lib => "sqlite3"
  # config.gem "aws-s3", :lib => "aws/s3"

  # Only load the plugins named here, in the order given (default is alphabetical).
  # :all can be used as a placeholder for all plugins not explicitly named
  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

  # Skip frameworks you're not going to use. To use Rails without a database,
  # you must remove the Active Record framework.
  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

  # Activate observers that should always be running
  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'UTC'

  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  # config.i18n.default_locale = :de
end