#848 ✓resolved
Cyril Mougel

dm-core branch next doesn't works with rspec-1.2.3 and greater

Reported by Cyril Mougel | May 12th, 2009 @ 04:14 AM | in 0.10.0

Hi

I wanted launch spec in next branch from dm-core. But it's not possible with rspec version greater or equal than 1.2.3.

If I launch spec with this version I have this error :


next > GEM_HOME=~/prog/ruby/gem_datamapper rake spec
(in /Users/Cyril/prog/ruby/dm-core)
Could not connect to the database using "sqlite3::memory:" because: #<Gem::LoadError: RubyGem version error: do_sqlite3(0.9.11 not ~> 0.9.12)
>
Could not connect to the database using "mysql://root@localhost/dm_core_test" because: #<Gem::LoadError: Could not find RubyGem do_mysql (~> 0.9.12)
>
 
 
Finished in 0.02609 seconds
 
0 examples, 0 failures
/Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_methods.rb:24:in `description': No description supplied for example declared on /Users/Cyril/prog/ruby/dm-core/spec/public/shared/collection_shared_spec.rb:19 (Spec::Example::NoDescriptionError)
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_methods.rb:52:in `execute'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_group_methods.rb:203:in `run_examples'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_group_methods.rb:201:in `each'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_group_methods.rb:201:in `run_examples'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/example/example_group_methods.rb:99:in `run'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/example_group_runner.rb:23:in `run'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/example_group_runner.rb:22:in `each'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/example_group_runner.rb:22:in `run'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/options.rb:119:in `run_examples'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/lib/spec/runner/command_line.rb:9:in `run'
        from /Library/Ruby/Gems/1.8/gems/rspec-1.2.4/bin/spec:4
rake aborted!
Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"spec:lib" "/Library/Ruby/Gems/1.8/gems/rspec-1.2.4/bin/spec" "spec/public/associations/many_to_many_spec.rb" "spec/public/associations/many_to_one_spec.rb" "spec/public/associations/one_to_many_spec.rb" "spec/public/associations/one_to_one_spec.rb" "spec/public/associations_spec.rb" "spec/public/collection_spec.rb" "spec/public/model_spec.rb" "spec/public/property_spec.rb" "spec/public/resource_spec.rb" "spec/public/setup_spec.rb" "spec/public/shared/collection_shared_spec.rb" "spec/public/shared/resource_shared_spec.rb" "spec/public/transaction_spec.rb" "spec/semipublic/adapters/abstract_adapter_spec.rb" "spec/semipublic/adapters/in_memory_adapter_spec.rb" "spec/semipublic/adapters/mysql_adapter_spec.rb" "spec/semipublic/adapters/postgres_adapter_spec.rb" "spec/semipublic/adapters/sqlite3_adapter_spec.rb" "spec/semipublic/adapters/yaml_adapter_spec.rb" "spec/semipublic/associations/many_to_one_spec.rb" "spec/semipublic/associations_spec.rb" "spec/semipublic/collection_spec.rb" "spec/semipublic/conditions_spec.rb" "spec/semipublic/query_spec.rb" "spec/semipublic/resource_spec.rb" "spec/semipublic/shared/resource_shared_spec.rb" failed
 
(See full trace by running task with --trace)

I need rspec 1.2.2 max to launch spec.

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) June 16th, 2009 @ 03:48 AM

    • Assigned user set to “Dan Kubb (dkubb)”
    • State changed from “unconfirmed” to “accepted”
    • Milestone set to 0.10.0
  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) July 2nd, 2009 @ 12:03 PM

    • State changed from “accepted” to “resolved”

    This does not appear to be a problem with dm-core/next any longer. I run the specs regularly with RSpec 1.2.6.

    Besides, this specific problem appears to be because older DO drivers were being used. You need to use the DO 0.10 drivers located in the do/next branch.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

People watching this ticket

Tags

Pages