<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: ActiveFixture: correct fixture loading with foreign key constraints</title>
	<atom:link href="http://alexle.net/archives/217/feed" rel="self" type="application/rss+xml" />
	<link>http://alexle.net/archives/217</link>
	<description>Personal View</description>
	<pubDate>Sat, 22 Nov 2008 06:35:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Alex le</title>
		<link>http://alexle.net/archives/217#comment-165712</link>
		<dc:creator>Alex le</dc:creator>
		<pubDate>Sat, 07 Jun 2008 06:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-165712</guid>
		<description>I received a large amount of spam just for this post so I decided to close out the comment feature.  If you need to leave a comment, please let me know and I will re-enable the feature.

Alex</description>
		<content:encoded><![CDATA[<p>I received a large amount of spam just for this post so I decided to close out the comment feature.  If you need to leave a comment, please let me know and I will re-enable the feature.</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diaz</title>
		<link>http://alexle.net/archives/217#comment-157122</link>
		<dc:creator>Diaz</dc:creator>
		<pubDate>Mon, 19 May 2008 14:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-157122</guid>
		<description>hey, thanks for what you doing. By the way, i'm having a litle issue here, in the Models folder i have a file that is not a class but a module that i load in almost all the others model files, so it is giving a error about the reflection that it offcourse can't do, between the lines 14 to 31...

what should i change for it to run fine?</description>
		<content:encoded><![CDATA[<p>hey, thanks for what you doing. By the way, i&#8217;m having a litle issue here, in the Models folder i have a file that is not a class but a module that i load in almost all the others model files, so it is giving a error about the reflection that it offcourse can&#8217;t do, between the lines 14 to 31&#8230;</p>
<p>what should i change for it to run fine?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex le</title>
		<link>http://alexle.net/archives/217#comment-156018</link>
		<dc:creator>Alex le</dc:creator>
		<pubDate>Fri, 16 May 2008 16:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-156018</guid>
		<description>@Diaz,

To use ActiveLoad during testing, we will have to override how Rails handles the fixtures.  I know it is possible to write a wrapper for the ActiveLoad method and define an "alias" to the original "load fixture" method.  The wrapper would then determine the dependencies and load the models accordingly.  With that said, I just haven't got to do it yet.  The tricky part is to figure how to overide and hookup ActiveLoad in place during testing.

Since you're requesting, once I have cleared out my projects list a bit, I'll look into implementing this feature.

Cheers!</description>
		<content:encoded><![CDATA[<p>@Diaz,</p>
<p>To use ActiveLoad during testing, we will have to override how Rails handles the fixtures.  I know it is possible to write a wrapper for the ActiveLoad method and define an &#8220;alias&#8221; to the original &#8220;load fixture&#8221; method.  The wrapper would then determine the dependencies and load the models accordingly.  With that said, I just haven&#8217;t got to do it yet.  The tricky part is to figure how to overide and hookup ActiveLoad in place during testing.</p>
<p>Since you&#8217;re requesting, once I have cleared out my projects list a bit, I&#8217;ll look into implementing this feature.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diaz</title>
		<link>http://alexle.net/archives/217#comment-155894</link>
		<dc:creator>Diaz</dc:creator>
		<pubDate>Fri, 16 May 2008 08:57:38 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-155894</guid>
		<description>ok, i just thought this could soulve the problem of when i run 'rake test' it fails all the tests because i added the foreign keys with the plugin 'foreign_key_migrations' from redhill. Do you have a tip or a idea to solve this?

thanks.</description>
		<content:encoded><![CDATA[<p>ok, i just thought this could soulve the problem of when i run &#8216;rake test&#8217; it fails all the tests because i added the foreign keys with the plugin &#8216;foreign_key_migrations&#8217; from redhill. Do you have a tip or a idea to solve this?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex le</title>
		<link>http://alexle.net/archives/217#comment-155656</link>
		<dc:creator>Alex le</dc:creator>
		<pubDate>Thu, 15 May 2008 16:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-155656</guid>
		<description>@Diaz

Once you have installed the plugin, you can then run

rake db:fixtures:activeload

instead of the usual

rake db:fixtures:load

Currently ActveLoad doesn't support smart fixture loading during unit-testing yet.  I'm not planning to work on it yet but probably will implement it when I need to do more extensive testings.</description>
		<content:encoded><![CDATA[<p>@Diaz</p>
<p>Once you have installed the plugin, you can then run</p>
<p>rake db:fixtures:activeload</p>
<p>instead of the usual</p>
<p>rake db:fixtures:load</p>
<p>Currently ActveLoad doesn&#8217;t support smart fixture loading during unit-testing yet.  I&#8217;m not planning to work on it yet but probably will implement it when I need to do more extensive testings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diaz</title>
		<link>http://alexle.net/archives/217#comment-155650</link>
		<dc:creator>Diaz</dc:creator>
		<pubDate>Thu, 15 May 2008 16:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-155650</guid>
		<description>sorry to ask if it is a very basic question, but how do i do to when i simply run rake or rake test it loads the fixtures using this plugin instead of the default action??

plz answer...</description>
		<content:encoded><![CDATA[<p>sorry to ask if it is a very basic question, but how do i do to when i simply run rake or rake test it loads the fixtures using this plugin instead of the default action??</p>
<p>plz answer&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Jose Palathinkal</title>
		<link>http://alexle.net/archives/217#comment-151068</link>
		<dc:creator>Edwin Jose Palathinkal</dc:creator>
		<pubDate>Mon, 05 May 2008 00:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-151068</guid>
		<description>If you need GUI debugger for Rails, Netbeans 6.1 is the way to go. It's just like debugging .NET when using it.

Nice work anyway!</description>
		<content:encoded><![CDATA[<p>If you need GUI debugger for Rails, Netbeans 6.1 is the way to go. It&#8217;s just like debugging .NET when using it.</p>
<p>Nice work anyway!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romulo Velasquez</title>
		<link>http://alexle.net/archives/217#comment-137868</link>
		<dc:creator>Romulo Velasquez</dc:creator>
		<pubDate>Thu, 03 Apr 2008 15:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-137868</guid>
		<description>Gonna give this a try.  Hopefully it solves my testing issues with foreign key constraints.  Thanks for the work!</description>
		<content:encoded><![CDATA[<p>Gonna give this a try.  Hopefully it solves my testing issues with foreign key constraints.  Thanks for the work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikos D.</title>
		<link>http://alexle.net/archives/217#comment-108603</link>
		<dc:creator>Nikos D.</dc:creator>
		<pubDate>Wed, 30 Jan 2008 15:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-108603</guid>
		<description>Excellent - thanks a lot!

I will let you know if i find anything 'unusual' going on... :)</description>
		<content:encoded><![CDATA[<p>Excellent - thanks a lot!</p>
<p>I will let you know if i find anything &#8216;unusual&#8217; going on&#8230; <img src='http://alexle.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ra</title>
		<link>http://alexle.net/archives/217#comment-62059</link>
		<dc:creator>Ra</dc:creator>
		<pubDate>Tue, 02 Oct 2007 08:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://alexle.net/archives/217#comment-62059</guid>
		<description>10x very much Alex, you solved my problem.
I'm using you plugin with  with Eclipse/Aptana/Rails, unfotunately you plug-in is not listed :-(. Installed by hand.

The tricky part was to define class and foreign key in has_many and belongs_to definition, as mentioned in readme. 
In my case I had to define fixture's file with the name of real tables (schema).</description>
		<content:encoded><![CDATA[<p>10x very much Alex, you solved my problem.<br />
I&#8217;m using you plugin with  with Eclipse/Aptana/Rails, unfotunately you plug-in is not listed :-(. Installed by hand.</p>
<p>The tricky part was to define class and foreign key in has_many and belongs_to definition, as mentioned in readme.<br />
In my case I had to define fixture&#8217;s file with the name of real tables (schema).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.505 seconds -->
