This project is archived and is in readonly mode.

#3960 ✓invalid
ricard

Simple new --edge app test fail

Reported by ricard | February 15th, 2010 @ 02:38 AM

  • rails testApp --edge
  • cd testApp
  • rails g scaffold post title:string body:text
  • rake db:migrate
  • rake test

/Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/resolver.rb:161:in resolve': Could not find gem 'rails (>= 0, runtime)' in git://github.com/rails/rails.git (at master). (Bundler::GemNotFound)

Source does not contain any versions of 'rails (>= 0, runtime)'

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/resolver.rb:40:in resolve'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/resolver.rb:39:in catch'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/resolver.rb:39:in resolve'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/runtime.rb:95:in specs'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/runtime.rb:81:in specs_for'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler/runtime.rb:18:in setup'<br/>

from /Users/ricard/.bundle/gems/bundler-0.9.5/lib/bundler.rb:66:in setup'<br/>

from /Users/ricard/rails/testApp/config/boot.rb:7

from /Users/ricard/rails/testApp/config/application.rb:1:in require'<br/>

from /Users/ricard/rails/testApp/config/application.rb:1

from /Users/ricard/rails/testApp/config/environment.rb:2:in require'<br/>

from /Users/ricard/rails/testApp/config/environment.rb:2

from ./test/test_helper.rb:2:in require'<br/>

from ./test/test_helper.rb:2

from ./test/unit/helpers/posts_helper_test.rb:1:in require'<br/>

from ./test/unit/helpers/posts_helper_test.rb:1

from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in load'<br/>

from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5

from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in each'<br/>

from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5

Comments and changes to this ticket

  • Nikolay Petrachkov

    Nikolay Petrachkov February 15th, 2010 @ 11:37 AM

    checked on my machine - works.

    jx@jxkubuntu812:~/projects$ rails testapp --edge
          create  
          create  README
          create  .gitignore
          create  Rakefile
          create  config.ru
          create  Gemfile
          create  app
          create  app/controllers/application_controller.rb
          create  app/helpers/application_helper.rb
          create  app/models
          create  app/views/layouts
          create  config
          create  config/routes.rb
          create  config/application.rb
          create  config/environment.rb
          create  config/environments
          create  config/environments/development.rb
          create  config/environments/test.rb
          create  config/environments/production.rb
          create  config/initializers
          create  config/initializers/backtrace_silencers.rb
          create  config/initializers/session_store.rb
          create  config/initializers/cookie_verification_secret.rb
          create  config/initializers/inflections.rb
          create  config/initializers/mime_types.rb
          create  config/locales
          create  config/locales/en.yml
          create  config/boot.rb
          create  config/database.yml
          create  db
          create  db/seeds.rb
          create  doc
          create  doc/README_FOR_APP
          create  lib
          create  lib/tasks
          create  lib/tasks/.gitkeep
          create  log
          create  log/server.log
          create  log/production.log
          create  log/development.log
          create  log/test.log
          create  public
          create  public/index.html
          create  public/422.html
          create  public/404.html
          create  public/500.html
          create  public/favicon.ico
          create  public/robots.txt
          create  public/images
          create  public/images/rails.png
          create  public/stylesheets
          create  public/stylesheets/.gitkeep
          create  public/javascripts
          create  public/javascripts/dragdrop.js
          create  public/javascripts/application.js
          create  public/javascripts/prototype.js
          create  public/javascripts/controls.js
          create  public/javascripts/rails.js
          create  public/javascripts/effects.js
          create  script
          create  script/rails
          create  test
          create  test/performance/browsing_test.rb
          create  test/test_helper.rb
          create  test/functional
          create  test/integration
          create  test/unit
          create  test/fixtures
          create  tmp
          create  tmp/sessions
          create  tmp/sockets
          create  tmp/cache
          create  tmp/pids
          create  vendor/plugins
          create  vendor/plugins/.gitkeep
             run  bundle install from "."
    Updating git://github.com/rails/rails.git
    Fetching source index from http://gemcutter.org
    Resolving dependencies
    Installing abstract (1.0.0) from system gems 
    Installing actionmailer (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing actionpack (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activemodel (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activerecord (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activeresource (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activesupport (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing arel (0.2.1) from system gems 
    Installing builder (2.1.2) from system gems 
    Installing bundler (0.9.5) from system gems 
    Installing erubis (2.6.5) from system gems 
    Installing i18n (0.3.3) from system gems 
    Installing mail (2.1.2) from system gems 
    Installing memcache-client (1.7.8) from system gems 
    Installing mime-types (1.16) from system gems 
    Installing rack (1.1.0) from system gems 
    Installing rack-mount (0.4.7) from system gems 
    Installing rack-test (0.5.3) from system gems 
    Installing rails (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing railties (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing rake (0.8.7) from system gems 
    Installing sqlite3-ruby (1.2.5) from system gems 
    Installing text-format (1.0.0) from system gems 
    Installing text-hyphen (1.0.0) from system gems 
    Installing thor (0.13.1) from system gems 
    Installing tzinfo (0.3.16) from system gems 
    Your bundle is complete!
    jx@jxkubuntu812:~/projects$ cd testapp/
    jx@jxkubuntu812:~/projects/testapp$ rails g scaffold post title:string body:text
          invoke  active_record
          create    db/migrate/20100215112553_create_posts.rb
          create    app/models/post.rb
          invoke    test_unit
          create      test/unit/post_test.rb
          create      test/fixtures/posts.yml
           route  resources :posts
          invoke  scaffold_controller
          create    app/controllers/posts_controller.rb
          invoke    erb
          create      app/views/posts
          create      app/views/posts/index.html.erb
          create      app/views/posts/edit.html.erb
          create      app/views/posts/show.html.erb
          create      app/views/posts/new.html.erb
          create      app/views/posts/_form.html.erb
          create      app/views/layouts/posts.html.erb
          invoke    test_unit
          create      test/functional/posts_controller_test.rb
          invoke    helper
          create      app/helpers/posts_helper.rb
          invoke      test_unit
          create        test/unit/helpers/posts_helper_test.rb
          invoke  stylesheets
          create    public/stylesheets/scaffold.css
    jx@jxkubuntu812:~/projects/testapp$ rake db:migrate
    (in /home/jx/projects/testapp)
    ==  CreatePosts: migrating ====================================================
    -- create_table(:posts)
       -> 0.0016s
    ==  CreatePosts: migrated (0.0017s) ===========================================
    
    jx@jxkubuntu812:~/projects/testapp$ rake test
    (in /home/jx/projects/testapp)
    
    Loaded suite /home/jx/.rvm/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader
    Started
    .
    Finished in 0.170894 seconds.
    
    1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
    
    Loaded suite /home/jx/.rvm/gems/ruby/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader
    Started
    .......
    Finished in 0.524425 seconds.
    
    7 tests, 10 assertions, 0 failures, 0 errors, 0 skips
    
  • ricard

    ricard February 15th, 2010 @ 12:38 PM

    You are using ruby 1.9.1 I did it with 1.8.7

  • Prem Sichanugrist (sikachu)

    Prem Sichanugrist (sikachu) February 15th, 2010 @ 03:15 PM

    I can't reproduce this problem either. Do you still seeing this problem?

    Sikachus-Notebook:~ sikachu$  rails testApp --edge
          create  
          create  README
          create  .gitignore
          create  Rakefile
          create  config.ru
          create  Gemfile
          create  app
          create  app/controllers/application_controller.rb
          create  app/helpers/application_helper.rb
          create  app/models
          create  app/views/layouts
          create  config
          create  config/routes.rb
          create  config/application.rb
          create  config/environment.rb
          create  config/environments
          create  config/environments/development.rb
          create  config/environments/production.rb
          create  config/environments/test.rb
          create  config/initializers
          create  config/initializers/backtrace_silencers.rb
          create  config/initializers/cookie_verification_secret.rb
          create  config/initializers/inflections.rb
          create  config/initializers/mime_types.rb
          create  config/initializers/session_store.rb
          create  config/locales
          create  config/locales/en.yml
          create  config/boot.rb
          create  config/database.yml
          create  db
          create  db/seeds.rb
          create  doc
          create  doc/README_FOR_APP
          create  lib
          create  lib/tasks
          create  lib/tasks/.gitkeep
          create  log
          create  log/server.log
          create  log/production.log
          create  log/development.log
          create  log/test.log
          create  public
          create  public/404.html
          create  public/422.html
          create  public/500.html
          create  public/favicon.ico
          create  public/index.html
          create  public/robots.txt
          create  public/images
          create  public/images/rails.png
          create  public/stylesheets
          create  public/stylesheets/.gitkeep
          create  public/javascripts
          create  public/javascripts/application.js
          create  public/javascripts/controls.js
          create  public/javascripts/dragdrop.js
          create  public/javascripts/effects.js
          create  public/javascripts/prototype.js
          create  public/javascripts/rails.js
          create  script
          create  script/rails
          create  test
          create  test/performance/browsing_test.rb
          create  test/test_helper.rb
          create  test/fixtures
          create  test/functional
          create  test/integration
          create  test/unit
          create  tmp
          create  tmp/sessions
          create  tmp/sockets
          create  tmp/cache
          create  tmp/pids
          create  vendor/plugins
          create  vendor/plugins/.gitkeep
             run  bundle install from "."
    Fetching git://github.com/rails/rails.git
    Fetching source index from http://gemcutter.org
    Resolving dependencies
    Installing abstract (1.0.0) from system gems 
    Installing actionmailer (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing actionpack (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activemodel (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activerecord (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activeresource (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing activesupport (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing arel (0.2.1) from rubygems repository at http://gemcutter.org 
    Installing builder (2.1.2) from system gems 
    Installing bundler (0.9.5) from system gems 
    Installing erubis (2.6.5) from system gems 
    Installing i18n (0.3.3) from system gems 
    Installing mail (2.1.2) from system gems 
    Installing memcache-client (1.7.8) from system gems 
    Installing mime-types (1.16) from system gems 
    Installing rack (1.1.0) from system gems 
    Installing rack-mount (0.4.7) from system gems 
    Installing rack-test (0.5.3) from system gems 
    Installing rails (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing railties (3.0.0.beta1) from git://github.com/rails/rails.git (at master) 
    Installing rake (0.8.7) from system gems 
    Installing sqlite3-ruby (1.2.5) from rubygems repository at http://gemcutter.org with native extensions 
    Installing text-format (1.0.0) from system gems 
    Installing text-hyphen (1.0.0) from system gems 
    Installing thor (0.13.1) from system gems 
    Installing tzinfo (0.3.16) from system gems 
    Your bundle is complete!
    Sikachus-Notebook:~ sikachu$ cd testApp/
    Sikachus-Notebook:testApp sikachu$ rails g scaffold post title:string body:text
          invoke  active_record
          create    db/migrate/20100215151300_create_posts.rb
          create    app/models/post.rb
          invoke    test_unit
          create      test/unit/post_test.rb
          create      test/fixtures/posts.yml
           route  resources :posts
          invoke  scaffold_controller
          create    app/controllers/posts_controller.rb
          invoke    erb
          create      app/views/posts
          create      app/views/posts/index.html.erb
          create      app/views/posts/edit.html.erb
          create      app/views/posts/show.html.erb
          create      app/views/posts/new.html.erb
          create      app/views/posts/_form.html.erb
          create      app/views/layouts/posts.html.erb
          invoke    test_unit
          create      test/functional/posts_controller_test.rb
          invoke    helper
          create      app/helpers/posts_helper.rb
          invoke      test_unit
          create        test/unit/helpers/posts_helper_test.rb
          invoke  stylesheets
          create    public/stylesheets/scaffold.css
    Sikachus-Notebook:testApp sikachu$ rake db:migrate
    (in /Users/sikachu/testApp)
    ==  CreatePosts: migrating ====================================================
    -- create_table(:posts)
       -> 0.0018s
    ==  CreatePosts: migrated (0.0020s) ===========================================
    
    Sikachus-Notebook:testApp sikachu$ rake test
    (in /Users/sikachu/testApp)
    Loaded suite /Users/sikachu/.rvm/gems/ruby-1.8.7-p248%global/gems/rake-0.8.7/lib/rake/rake_test_loader
    Started
    .
    Finished in 0.039293 seconds.
    
    1 tests, 1 assertions, 0 failures, 0 errors
    Loaded suite /Users/sikachu/.rvm/gems/ruby-1.8.7-p248%global/gems/rake-0.8.7/lib/rake/rake_test_loader
    Started
    .......
    Finished in 0.436806 seconds.
    
    7 tests, 10 assertions, 0 failures, 0 errors
    Sikachus-Notebook:testApp sikachu$ gem list rails
    
    *** LOCAL GEMS ***
    
    rails (3.0.0.beta)
    rails3b (3.0.1)
    Sikachus-Notebook:testApp sikachu$ rails -v
    Rails 3.0.0.beta1
    Sikachus-Notebook:testApp sikachu$
    
  • ricard

    ricard February 15th, 2010 @ 03:45 PM

    I have solved it

    Bundler version on my system was 0.9.3 and rails modules were at beta1 but rails gem itself was beta I updated bundler and rails gem and now it works.

    Thanks!!

  • Prem Sichanugrist (sikachu)

    Prem Sichanugrist (sikachu) February 15th, 2010 @ 04:02 PM

    • State changed from “new” to “invalid”

    No problem. Great it works for you ;)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Tags

Pages