Hi David<br><br>I have that option set already, and i&#39;m not using any fixtures in spec_helper.&nbsp; My spec helper looks like this:&nbsp; is it the use_instantiated_fixtures option perhaps?&nbsp; (i don&#39;t know what that does).<br>
<br>thanks, max<br>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;<br>
require File.expand_path(File.dirname(__FILE__) + &quot;/../config/environment&quot;)<br>require &#39;spec&#39;<br>require &#39;spec/rails&#39;<br>require &#39;spec/custom_matchers&#39; <br><br>Spec::Runner.configure do |config|<br>
&nbsp; # If you&#39;re not using ActiveRecord you should remove these<br>&nbsp; # lines, delete config/database.yml and disable :active_record<br>&nbsp; # in your config/boot.rb<br>&nbsp; config.use_transactional_fixtures = true<br>&nbsp; config.use_instantiated_fixtures&nbsp; = false<br>
&nbsp; config.fixture_path = RAILS_ROOT + &#39;/spec/fixtures/&#39;<br>&nbsp; <br>&nbsp; #custom stuff<br>&nbsp; config.include(CustomMatchers)<br>&nbsp; <br>&nbsp; def mock_login_required(allow_user_to_pass=true)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; controller.stub!(:login_required).and_return(allow_user_to_pass)<br>
&nbsp; end<br>&nbsp; <br>&nbsp; def mock_admin_user?(allow_user_to_pass=true)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; controller.stub!(:admin_user?).and_return(allow_user_to_pass)<br>&nbsp; end<br>&nbsp; <br>&nbsp; def mock_current_user(id = 1)<br>&nbsp;&nbsp;&nbsp; @user = mock_model(User, :to_param =&gt; id.to_s, :id =&gt; 1)<br>
&nbsp;&nbsp;&nbsp; controller.stub!(:current_user).and_return(@user)<br>&nbsp; end<br>end<br>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
<br><br><div><span class="gmail_quote">On 21/02/2008, <b class="gmail_sendername">David Chelimsky</b> &lt;<a href="mailto:dchelimsky@gmail.com">dchelimsky@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Feb 21, 2008 at 6:17 AM, Max Williams<br> &lt;<a href="mailto:toastkid.williams@gmail.com">toastkid.williams@gmail.com</a>&gt; wrote:<br> &gt; I have a fixture for one of my tables that i use in some model tests.&nbsp;&nbsp;The<br>
 &gt; data in it is messing up some other tests for a different model, that<br> &gt; doesn&#39;t ask for the fixture - isn&#39;t the fixture data supposed to be cleared<br> &gt; out of the test db in between tests, and only be present if specifically<br>
 &gt; asked for?&nbsp;&nbsp;or am i using them wrong?<br> <br> <br>It depends on settings you have in spec_helper.rb. You should have this:<br> <br>&nbsp;&nbsp;config.use_transactional_fixtures = true<br> <br> You should also not be declaring any fixtures in spec_helper.rb, given<br>
 your situation.<br> <br> HTH,<br> David<br> <br> &gt;<br> &gt; thanks<br> &gt; max<br> &gt;<br> &gt; _______________________________________________<br> &gt;&nbsp;&nbsp;rspec-users mailing list<br> &gt;&nbsp;&nbsp;<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
 &gt;&nbsp;&nbsp;<a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br> &gt;<br> _______________________________________________<br> rspec-users mailing list<br> <a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
 <a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br> </blockquote></div><br>