[rspec-users] An error on edge at -r 2767

sinclair bain rspec.user at gmail.com
Tue Oct 23 13:36:51 EDT 2007


Ok
Using rails 1.2.3

> rails trunk-error -d sqlite3
> cd trunk-error
> ruby script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec
> ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails
> ruby script/generate rspec

In an editor create the following model spec (spec/models/foo_spec.rb)

require File.dirname(__FILE__) + '/../spec_helper'

describe 'trunk error' do

  it 'should fail' do
    true.should == false
  end

  it 'should not fail' do
    true.should == true
  end

end

> rake spec:models -t

This causes the problem.

1)
SQLite3::SQLException in 'trunk error should not fail'
SQL logic error or missing database
C:/development/sandbox/prototypes/trunk-error/config/../vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:17:in
`before_eval'

2)
SQLite3::SQLException in 'trunk error should fail'
SQL logic error or missing database
C:/development/sandbox/prototypes/trunk-error/config/../vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:17:in
`before_eval'

Finished in 0.61 seconds



Now if the plugins are removed then the 1.0.8 release installed
> ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec
> ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec_on_rails
> ruby script/generate rspec
 Then
> rake spec:models -t

Then the specs behave as coded i.e. 1 success and 1 fail.
This was not the case last week. This did not occur until





On 10/23/07, David Chelimsky <dchelimsky at gmail.com> wrote:
>
> On 10/23/07, sinclair bain <rspec.user at gmail.com> wrote:
> > Hi,Updated from  the trunk/edge again today however all the specs still
> fail
> > as before.
> >
> > I uninstalled and moved back to the 1.0.8 release and all specs are
> > successful again.
> >
> > Unfortunately, no Story Runner.
>
> Sorry Sinclair, but I have no idea what is causing your woes. I think
> we need to see some code and some backtraces if you want any help.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071023/29ef8769/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo_spec.rb
Type: application/octet-stream
Size: 207 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20071023/29ef8769/attachment.obj 


More information about the rspec-users mailing list