On 14/03/2008, at 10:14 PM, David Chelimsky wrote:

> On Fri, Mar 14, 2008 at 1:31 AM, Shane Mingins  
> <[EMAIL PROTECTED]> wrote:
>> Hi
>>
>> We have specs in our rails project other than model/view/ 
>> controller ..
>> we have interests and lib ...
>>
>> using use_transactional_fixtures = true seems fine in a spec in the  
>> m/
>> v/c and interests directories but not in lib
>>
>> Just wondered if anyone had any quick thoughts as to why that may  
>> be???
>
> This should answer your question:
> http://rspec.info/documentation/rails/writing/.
>
>>

Thanks, that was helpful to know.  It did not seem to be the issue I  
was having though, the specs in lib causing the problem were using  
before(:all) to setup database records ... changed to use (:each) and  
all was happy in the land of nod ... that was the difference between  
the specs in lib and interests ... so not sure what I may be losing  
(and not know it) without doing something like :behaviour_type  
=> :model ... I do suspect that may have been why I could not use  
mock_model in a spec once ... will have to find that example sometime  
and look.

Thanks again

Shane
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to