[rspec-devel] Rpec with Locomo

Jerry West jerry.west at ntlworld.com
Fri Oct 13 11:59:16 EDT 2006


This message (using SQLite) may be masking other errors or exceptions -  
usually faulty fixtures in my case. 

See also http://dev.rubyonrails.org/ticket/2749

Rgds,
  Jerry

Bolo Michelin wrote:
> Nobody ?
> my spec.file
> require File.dirname(__FILE__) + '/../spec_helper'
> module FaqSpecHelper
>   def validate_faq_attributes
>     { :question_fr  => 'titre de la question',
>       :response_fr  => 'reponse de la question'}
>   end
> end
>
> context "une faq en général" do
>   def setup
>     @faq = Faq.new
>   end
>  
>   specify "devras être invalide sans question" do
>     #doit avoir une réponse valide
>     @faq.reponse_fr = 'le_titre_de_la_question'
>     @faq.should_not_be_valid
>     @faq.errors.on(:question_fr).should_equal "est necessaire"
>     @faq.question_fr = 'le_titre_de_la_question'
>     @faq.should_be_valid
>   end
>  
>   specify "devras être invalide sans réponse" do
>     #doit avoir une question valide
>      @faq.question_fr = 'le_titre_de_la_question'
>      @faq.should_not_be_valid
>      @faq.errors.on(:reponse_fr).should_equal "est necessaire"
>      @faq.reponse_fr = 'le_titre_de_la_question'
>      @faq.should_be_valid
>    end
> end
>
>
> 2006/10/12, Bolo Michelin <malavoi at gmail.com <mailto:malavoi at gmail.com>>:
>
>     Hello
>
>     I turn off transactional_fixture
>     self.use_transactional_fixtures = false
>
>     But when i tested rcpec have this error
>
>     pc-mq-dsi3:~/Documents/Coding-Dev/expay_corporate bmichelin$ spec
>     spec/models/faq_spec.rb
>
>     /Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/i386/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/errors.rb:94:in
>     `check': cannot rollback - no transaction is active
>     (SQLite3::SQLException)
>
>     thanks
>
>     -- 
>     Bolo Michelin
>     web: http://www.independza.com <http://www.independza.com> 
>
>
>
>
> -- 
> Bolo Michelin
> web: http://www.independza.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel


More information about the rspec-devel mailing list