rake spec does not seem to be doing anything. Could it be a problem with
ruby 1.9? Here is what I did:
rails rspec-test
cd rspec-test
test.rb: config.gem "rspec", :lib => false, :version =>
">= 1.2.0"
test.rb: config.gem "rspec-rails", :lib => false, :version =>
">= 1.2.0"
ruby script/generate rspec
ruby script/generate rspec_scaffold Movie title:string number:integer
rake db:create:all
rake db:migrate
remove --colour in spec.opts
rake spec
This should return a bunch of passed tests, but doesn''t.
Environment:
Ubuntu 9.04
Rails 2.3.2
ruby 1.9.1p0
rspec 1.2.4 as gem
rspec-rails 1.2 4 as gem
rake spec --trace
(in /home/tick/work/rspec-test)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute spec
tick at ubuntu:~/work/rspec-test$
--
Posted via http://www.ruby-forum.com/.