Quando eseguo bundle exec rake jasmine
quindi individuare http://localhost:8888/ vedo il seguente messaggio di errore:'Non ci sono dati ricevuti' durante l'esecuzione di specifiche Jasmine
No data received
Unable to load the web page because the server sent no data.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
Nella console, vedo:
[2012-02-08 07:54:08] INFO WEBrick 1.3.1
[2012-02-08 07:54:08] INFO ruby 1.9.2 (2011-07-09) [i686-linux]
[2012-02-08 07:54:08] WARN TCPServer Error: Address already in use - bind(2)
[2012-02-08 07:54:08] INFO WEBrick::HTTPServer#start: pid=12078 port=8888
[2012-02-08 07:54:10] ERROR ArgumentError: wrong number of arguments (2 for 0)
/home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/railroady-1.0.6/tasks/railroady.rake:11:in `format'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:110:in `service'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
[2012-02-08 07:54:10] ERROR ArgumentError: wrong number of arguments (3 for 0)
/home/duncan/.rvm/gems/ruby-1.9.2-p290/gems/railroady-1.0.6/tasks/railroady.rake:11:in `format'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpversion.rb:46:in `to_s'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpresponse.rb:49:in `status_line'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpresponse.rb:170:in `send_header'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpresponse.rb:102:in `send_response'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:86:in `run'
/home/duncan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
La struttura della directory spec/javascripts è:
spec/javascripts/
├── helpers
│ ├── jasmine_helpers.js.coffee
│ ├── jasmine-jquery-1.3.1.js
│ └── mock-ajax.js
├── models
│ ├── account_spec.js.coffee
│ ├── matrices_spec.js.coffee
│ ├── matrix_spec.js.coffee
│ └── students_spec.js.coffee
├── support
│ ├── jasmine_config.rb
│ ├── jasmine_runner.rb
│ └── jasmine.yml
└── views
├── avia_view_spec.js.coffee
├── matrices_view_spec.js.coffee
├── students_view_spec.js.coffee
└── student_view_spec.js.coffee
My jasmine.yml file contiene: le versioni
src_dir: app/assets/javascripts
asset_paths:
- app/assets/javascripts/views
src_files:
- avia.js
- jquery-1.6.4.js
- jquery.jqGrid.min.js
- underscore.js
- backbone.js
- haml.js
- "**/*"
stylesheets:
- stylesheets/**/*.css
helpers:
- helpers/**/*.js
- helpers/**/*.js.coffee
spec_files:
- '**/*_spec.js.coffee'
spec_dir: spec/javascripts
My Gem sono (ho incluso quello che penso sono quelli pertinente nel modo seguente; fatemi sapere se avete bisogno di un elenco completo):
- caffè-filtro (0.1.1)
- coffee-rotaie (3.1.1)
- caffè-script (2.2.0)
- coffee-script-source (1.2.0)
- gelsomino (1.1.2)
- gelsomino-core (1.1.0)
- gelsomino-senza testa-webkit (0.9.0.rc1 4f11cba)
- gelsomino -r ails (0.0.2)
- railroady (1.0.6)
- rotaie (3.1.0)
- rastrello (0.9.2.2)
- pignoni (2.0.3)
- therubyracer (0.9.9
Sto eseguendo Chrome 16.0.912.77 su Linux Mint 12, utilizzando Ruby 1.9.2-p290 tramite RVM.
Questa messa a punto funziona bene attraverso gelsomino-headless-webkit:
Running Jasmine specs...
............................
PASS: 28 tests, 0 failures, 0.076 secs.
Forse sto facendo qualcosa nel mio jasmine.yml che non è supportato da jasmine-gioiello?
Questo dovrebbe essere 'gem 'railroady',: git =>" git: //github.com/preston/railroady.git "' se non sei un contributore. –