Initial run of RSpec 1.0.8 on MS-WinXPproSP2

Rails 1.2.5
Ruby 1.8.6
Rake 0.7.3
RSpec 1.0.8
PostgreSQL 8.2.5

I am experiencing a problem with the “rake spec spec” task on an initial
trial of rspec. After creating the rails app I installed rspec and
rspec_on_rails in the vendor\plugins subdirectory from svn. I then used
ruby script\generate rspec_model product. I next manually created the
database instances depot_development and depot_test via pgAdmin III. I
then confirmed rails configuration connectivity by running rake
db:migrate
from the app root.

When I run rake spec spec\models for the first time, without modifying
the
product_rspec.rb file, I get this:

C:\Documents and Settings\byrnejb\My Documents
My Projects\ca.harte-lyne.system\pragdepot

rake spec spec\models --trace
(in C:/Documents and Settings/byrnejb/
My Documents/MyProjects/ca.harte-lyne.system/pragdepot)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
rake aborted!
PGError: ERROR: relation “pg_ts_cfg” already exists
: CREATE TABLE pg_ts_cfg (“ts_name” text NOT NULL, “prs_name” text
NOT NULL, “locale” text DEFAULT NULL)
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/
active_record/connection_adapters/abstract_adapter.rb:128:in log' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/connection_adapters/postgresql_adapter.rb:152:in execute’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/
active_record/connection_adapters/abstract/
schema_statements.rb:104:in create_table' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:275:in send’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/
active_record/migration.rb:275:in method_missing' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:259:in say_with_time’
C:/usr/local/bin/ruby/lib/ruby/1.8/benchmark.rb:293:in measure' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/migration.rb:259:in say_with_time’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/
active_record/migration.rb:273:in method_missing' ./db/schema.rb:7 C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/ active_record/schema.rb:43:in instance_eval’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/
active_record/schema.rb:43:in define' ./db/schema.rb:5 C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/ active_support/dependencies.rb:488:in load’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/
active_support/dependencies.rb:488:in load' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/ active_support/dependencies.rb:342:in new_constants_in’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/
active_support/dependencies.rb:488:in load' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/ tasks/databases.rake:31 C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in call’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in execute' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in each’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in execute' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:362:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:355:in synchronize' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:355:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/
tasks/databases.rake:76
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in call' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in execute’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in each' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in execute’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:362:in invoke' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:355:in synchronize’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:355:in invoke' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/ tasks/databases.rake:153 C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in call’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in execute' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:392:in each’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:392:in execute' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:362:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:355:in synchronize' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:355:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:369:in invoke_prerequisites' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1003:in each’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:1003:in send' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1003:in each’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:368:in invoke_prerequisites' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:361:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:355:in synchronize' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:355:in invoke’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:1739:in top_level' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1739:in each’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:1739:in top_level' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1761:in standard_exception_handling’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:1733:in top_level' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1711:in run’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/
rake.rb:1761:in standard_exception_handling' C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/ rake.rb:1708:in run’
C:/usr/local/bin/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
C:/usr/local/bin/ruby/bin/rake.bat:20:in `load’
C:/usr/local/bin/ruby/bin/rake.bat:20

C:\Documents and Settings\byrnejb\My Documents\My
Projects\ca.harte-lyne.system\pragdepot>

Have I missed some critical setup item? Running rake spec:models gives
the
same results. I get this error whether or not the RSpec gem is
installed.
Any help would be greatly appreciated.

Regards,


*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:[email protected]
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3