<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing Single Table Inheritance Models in Ruby on Rails</title>
	<atom:link href="http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/</link>
	<description>Digital design agency, creative content, brand identity, web development, online marketing, application creation, integrated</description>
	<lastBuildDate>Wed, 29 Jun 2011 13:47:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: davidg</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-9769</link>
		<dc:creator>davidg</dc:creator>
		<pubDate>Sat, 29 May 2010 05:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-9769</guid>
		<description>Appreciate it!  Single table inheritance models blew up my unit tests starting out - thanks for the quick and easy fix.</description>
		<content:encoded><![CDATA[<p>Appreciate it!  Single table inheritance models blew up my unit tests starting out &#8211; thanks for the quick and easy fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supra shoes</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-9765</link>
		<dc:creator>Supra shoes</dc:creator>
		<pubDate>Fri, 23 Apr 2010 04:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-9765</guid>
		<description>Wonderful journey and experience!</description>
		<content:encoded><![CDATA[<p>Wonderful journey and experience!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vanne</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-7095</link>
		<dc:creator>Vanne</dc:creator>
		<pubDate>Fri, 20 Jun 2008 17:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-7095</guid>
		<description>@Laurent

Got the same problem. Turns out fixtures were generated for all models.
So for the table that is really there but also for the models which inherit from it, which obviously don&#039;t have a table, as that is the whole point of STI.
The scaffold generator does create fixtures even if you specify --skip-migration it seems.</description>
		<content:encoded><![CDATA[<p>@Laurent</p>
<p>Got the same problem. Turns out fixtures were generated for all models.<br />
So for the table that is really there but also for the models which inherit from it, which obviously don&#8217;t have a table, as that is the whole point of STI.<br />
The scaffold generator does create fixtures even if you specify &#8211;skip-migration it seems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Hrycyszyn</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-7089</link>
		<dc:creator>Dave Hrycyszyn</dc:creator>
		<pubDate>Tue, 10 Jun 2008 16:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-7089</guid>
		<description>One thing that could cause this is if you forgot to change the 

fixtures :modules 

line from your test into 

fixtures :applications # or whatever your table name is</description>
		<content:encoded><![CDATA[<p>One thing that could cause this is if you forgot to change the </p>
<p>fixtures :modules </p>
<p>line from your test into </p>
<p>fixtures :applications # or whatever your table name is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laurent</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-7086</link>
		<dc:creator>Laurent</dc:creator>
		<pubDate>Sun, 01 Jun 2008 07:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-7086</guid>
		<description>I have a problem in my test .
When launching the test on my model &#039;Module&#039; inherited from a class &#039;Application&#039; (the table applications exist in database)
My test tries first to clean the table &#039;modules&#039; , that does not exist.
Did i miss something?</description>
		<content:encoded><![CDATA[<p>I have a problem in my test .<br />
When launching the test on my model &#8216;Module&#8217; inherited from a class &#8216;Application&#8217; (the table applications exist in database)<br />
My test tries first to clean the table &#8216;modules&#8217; , that does not exist.<br />
Did i miss something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-7056</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 07 May 2008 16:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-7056</guid>
		<description>inflect.uncountable would do the job instead of set_table_name, yeah, but all the fixtures work is always necessary (so articles.yml is still useless, and you need to put your articles fixtures into the content.yml fixture with a type property, etc).</description>
		<content:encoded><![CDATA[<p>inflect.uncountable would do the job instead of set_table_name, yeah, but all the fixtures work is always necessary (so articles.yml is still useless, and you need to put your articles fixtures into the content.yml fixture with a type property, etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Zylstra</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-6980</link>
		<dc:creator>Brandon Zylstra</dc:creator>
		<pubDate>Fri, 28 Mar 2008 17:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-6980</guid>
		<description>Wouldn&#039;t it also have worked (with less work manually changing tests) to add a line to your inflections.rb like so:
    inflect.uncountable %w( fish sheep content )</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it also have worked (with less work manually changing tests) to add a line to your inflections.rb like so:<br />
    inflect.uncountable %w( fish sheep content )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamil</title>
		<link>http://blog.headlondon.com/2007/05/24/testing-single-table-inheritance-models-in-ruby-on-rails/comment-page-1/#comment-6803</link>
		<dc:creator>Kamil</dc:creator>
		<pubDate>Mon, 03 Dec 2007 19:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.headlondon.com/archives/testing-single-table-inheritance-models-in-ruby-on-rails/#comment-6803</guid>
		<description>Thanks, it helped :)</description>
		<content:encoded><![CDATA[<p>Thanks, it helped <img src='http://blog.headlondon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

