<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US">
  <title>Megablaix - All Comments</title>
  <id>tag:mega.blaix.com,2008:mephisto/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  
  <link href="http://mega.blaix.com/" rel="alternate" type="text/html" />
  <updated>2008-04-19T02:46:24Z</updated>
  <link rel="self" href="http://feeds.feedburner.com/megablaix-comments" type="application/atom+xml" /><feedburner:browserFriendly></feedburner:browserFriendly><entry xml:base="http://mega.blaix.com/">
    <author>
      <name>kihjsoagp</name>
    </author>
    <id>tag:mega.blaix.com,2007-09-27:24:187</id>
    <published>2008-04-19T02:46:24Z</published>
    <updated>2008-04-19T02:46:24Z</updated>
    <link href="http://mega.blaix.com/2007/9/27/rails-on-ubuntu-7-04-feisty" rel="alternate" type="text/html" />
    <title>Comment on 'Rails setup and deployment with Capistrano 2.0 on Ubuntu 7.04 (Feisty)' by kihjsoagp</title>
<content type="html">w6ZjZo  &lt;a href="http://cgfogqszmgbe.com/"&gt;cgfogqszmgbe&lt;/a&gt;, [url=http://hsykkkxzhdkg.com/]hsykkkxzhdkg[/url], [link=http://kxybzywmtnzx.com/]kxybzywmtnzx[/link], http://mtmlzguiyufg.com/</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>ashes999</name>
    </author>
    <id>tag:mega.blaix.com,2008-01-30:164:186</id>
    <published>2008-04-17T01:47:52Z</published>
    <updated>2008-04-17T01:47:52Z</updated>
    <link href="http://mega.blaix.com/2008/1/30/foxy-fixtures-gotcha" rel="alternate" type="text/html" />
    <title>Comment on 'Foxy Fixtures Gotcha' by ashes999</title>
<content type="html">Brilliant!  Thank you!  You just saved me lots of time running around trying to figure out why my associations are null ...</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>John</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-17:171:184</id>
    <published>2008-03-31T21:47:17Z</published>
    <updated>2008-03-31T21:47:17Z</updated>
    <link href="http://mega.blaix.com/2008/2/17/a-better-basecamp" rel="alternate" type="text/html" />
    <title>Comment on 'A better Basecamp' by John</title>
<content type="html">Fun project. What are going to develop it with?</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>bill</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-17:171:182</id>
    <published>2008-02-26T15:49:27Z</published>
    <updated>2008-02-26T15:49:27Z</updated>
    <link href="http://mega.blaix.com/2008/2/17/a-better-basecamp" rel="alternate" type="text/html" />
    <title>Comment on 'A better Basecamp' by bill</title>
<content type="html">you forgot git / svn integration</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Ben Tucker</name>
    </author>
    <id>tag:mega.blaix.com,2008-01-15:157:178</id>
    <published>2008-02-19T18:44:52Z</published>
    <updated>2008-02-19T18:44:52Z</updated>
    <link href="http://mega.blaix.com/2008/1/15/undefined-method-last-for-hash" rel="alternate" type="text/html" />
    <title>Comment on 'undefined method `last' for {}:Hash' by Ben Tucker</title>
<content type="html">Thanks for the google-friendly title!  This was very helpful.</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Justin Blake</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-17:171:176</id>
    <published>2008-02-19T04:47:34Z</published>
    <updated>2008-02-19T04:47:34Z</updated>
    <link href="http://mega.blaix.com/2008/2/17/a-better-basecamp" rel="alternate" type="text/html" />
    <title>Comment on 'A better Basecamp' by Justin Blake</title>
<content type="html">Probably Merb + Datamapper + Rspec.</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>james</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-17:171:175</id>
    <published>2008-02-19T04:23:12Z</published>
    <updated>2008-02-19T04:23:12Z</updated>
    <link href="http://mega.blaix.com/2008/2/17/a-better-basecamp" rel="alternate" type="text/html" />
    <title>Comment on 'A better Basecamp' by james</title>
<content type="html">Are you going to do it in django?</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>sintaxi</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-17:171:174</id>
    <published>2008-02-18T17:48:23Z</published>
    <updated>2008-02-18T17:48:23Z</updated>
    <link href="http://mega.blaix.com/2008/2/17/a-better-basecamp" rel="alternate" type="text/html" />
    <title>Comment on 'A better Basecamp' by sintaxi</title>
<content type="html">looks like a fun project. I would be all over this if I didnt have so much on my plate. Ill have to keep an eye on it.</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Greg</name>
    </author>
    <id>tag:mega.blaix.com,2008-02-15:168:169</id>
    <published>2008-02-15T20:48:25Z</published>
    <updated>2008-02-15T20:48:25Z</updated>
    <link href="http://mega.blaix.com/2008/2/15/getting-a-jump-on-merb-0-9" rel="alternate" type="text/html" />
    <title>Comment on 'Getting a jump on Merb 0.9' by Greg</title>
<content type="html">I don't know what it is, but after looking at the pretty site, I have to have whatever it is to use for my whatever it does.</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>rgc</name>
    </author>
    <id>tag:mega.blaix.com,2008-01-15:157:166</id>
    <published>2008-02-02T00:07:04Z</published>
    <updated>2008-02-02T00:07:04Z</updated>
    <link href="http://mega.blaix.com/2008/1/15/undefined-method-last-for-hash" rel="alternate" type="text/html" />
    <title>Comment on 'undefined method `last' for {}:Hash' by rgc</title>
<content type="html">Thanks for the tip - this saved me.....</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Justin Blake</name>
    </author>
    <id>tag:mega.blaix.com,2007-12-12:137:150</id>
    <published>2008-01-10T13:22:45Z</published>
    <updated>2008-01-10T13:22:45Z</updated>
    <link href="http://mega.blaix.com/2007/12/12/rspec-and-associations" rel="alternate" type="text/html" />
    <title>Comment on 'Rspec and associations' by Justin Blake</title>
<content type="html">Apologies for the lack of comment formatting. I'm working on it.</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Justin Blake</name>
    </author>
    <id>tag:mega.blaix.com,2007-12-12:137:149</id>
    <published>2008-01-10T13:16:10Z</published>
    <updated>2008-01-10T13:16:10Z</updated>
    <link href="http://mega.blaix.com/2007/12/12/rspec-and-associations" rel="alternate" type="text/html" />
    <title>Comment on 'Rspec and associations' by Justin Blake</title>
<content type="html">David: I don't usually test normal getters/setters (i.e. those magically created by AR from db fields), but I consider model relationships part of the model's behavior, and the best way I know to test that they exist is to test for the setter and the collection object. Was just wondering if there was a better way than that.

Matt: I tried the rspec_on_rails_matchers plugin and wasn't crazy about it. I don't like that it just reflects on the AR associations. Calling has_many :whatever doesn't guarantee that you have a working association (e.g. if the database fields are incorrect the test will still pass).</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>David Chelimsky</name>
    </author>
    <id>tag:mega.blaix.com,2007-12-12:137:148</id>
    <published>2008-01-03T23:57:03Z</published>
    <updated>2008-01-03T23:57:03Z</updated>
    <link href="http://mega.blaix.com/2007/12/12/rspec-and-associations" rel="alternate" type="text/html" />
    <title>Comment on 'Rspec and associations' by David Chelimsky</title>
<content type="html">Hey Justin,

Keep in mind that RSpec is intended to support BDD with examples of behaviour driving out the implementation.

There is a TDD guide line that says "test anything that can break."

Based on these two things, I generally don't spec simple getters/setters. In my view, they shouldn't exist unless they are necessary for some behaviour, in which case they come to be through examples of behaviour.

Why do we care if the butter belongs to a specific biscuit? Perhaps the reverse relationship might prove an easier example:

&lt;code&gt;
describe Biscuit do
  it "should be delicious with butter on it" do
    biscuit = Biscuit.new

    biscuit.spread Butter.new

    biscuit.should be_delicious
  end
end
&lt;/code&gt;</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Matt Aimonetti</name>
    </author>
    <id>tag:mega.blaix.com,2007-12-12:137:140</id>
    <published>2007-12-14T21:04:58Z</published>
    <updated>2007-12-14T21:04:58Z</updated>
    <link href="http://mega.blaix.com/2007/12/12/rspec-and-associations" rel="alternate" type="text/html" />
    <title>Comment on 'Rspec and associations' by Matt Aimonetti</title>
<content type="html">install http://svn.integrumtech.com/public/plugins/rspec_on_rails_matchers/

and you will be able to do

    @user.should belong_to(:site)
    @user.should have_many(:posts)

etc...

-Matt</content>  </entry>
  <entry xml:base="http://mega.blaix.com/">
    <author>
      <name>Justin</name>
    </author>
    <id>tag:mega.blaix.com,2007-09-27:24:133</id>
    <published>2007-12-05T12:27:15Z</published>
    <updated>2007-12-05T12:27:15Z</updated>
    <link href="http://mega.blaix.com/2007/9/27/rails-on-ubuntu-7-04-feisty" rel="alternate" type="text/html" />
    <title>Comment on 'Rails setup and deployment with Capistrano 2.0 on Ubuntu 7.04 (Feisty)' by Justin</title>
<content type="html">Kad, the mongrel instances are running on the same server as apache, which is why you're proxying to localhost. If mydomain points to the server where your mongrels are running, you'd use that instead.</content>  </entry>
</feed>
