<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - rspec: model.should be_valid Comments</title>
  <id>tag:opensoul.org,2008:/2007/4/18/rspec-model-should-be_valid/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
  <updated>2008-10-10T02:35:14Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>ttsuchi</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:8638</id>
    <published>2008-10-10T02:35:14Z</published>
    <updated>2008-10-10T02:35:14Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by ttsuchi</title>
<content type="html">&lt;p&gt;thanks! this is great!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Edwin Moss</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:5888</id>
    <published>2008-04-28T21:08:35Z</published>
    <updated>2008-04-28T21:08:35Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Edwin Moss</title>
<content type="html">&lt;p&gt;thanks&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Gustav Paul</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:4969</id>
    <published>2008-01-11T19:36:47Z</published>
    <updated>2008-01-11T19:36:47Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Gustav Paul</title>
<content type="html">&lt;p&gt;nice one&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Bryan Ray</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:4434</id>
    <published>2007-12-08T17:42:58Z</published>
    <updated>2007-12-08T17:42:58Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Bryan Ray</title>
<content type="html">&lt;p&gt;Thanks for the addition. Much appreciated.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Hans de Graaff</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:4120</id>
    <published>2007-11-06T20:23:04Z</published>
    <updated>2007-11-06T20:23:04Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Hans de Graaff</title>
<content type="html">&lt;p&gt;Would be nice to see this as part of the rspec rails plugin. Did you already submit a patch for it?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Craig Buchek</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:3337</id>
    <published>2007-08-06T00:45:20Z</published>
    <updated>2007-08-06T00:45:20Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Craig Buchek</title>
<content type="html">&lt;p&gt;I threw this into &lt;code&gt;spec/spec_helper.rb&lt;/code&gt;; is that the right place, or is there a better place to put this?&lt;/p&gt;


Also, it wouldn&#8217;t work with &lt;code&gt;should_not be_valid&lt;/code&gt;. I had to add this:
&lt;pre&gt;
  def negative_failure_message
    &quot;#{@model.class} expected to be invalid but was valid.\n&quot; 
  end
&lt;/pre&gt;

	&lt;p&gt;Other than that, it&#8217;s been a great help in finding the source of problems when the results are not as I was expecting.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>Rabbit</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:3312</id>
    <published>2007-08-01T22:50:19Z</published>
    <updated>2007-08-01T22:50:19Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by Rabbit</title>
<content type="html">&lt;p&gt;Ah&#8230; that&#8217;s how be_valid works. Newly generated model specs use the be_valid method, but I couldn&#8217;t find any documentation for it. Thanks for the heads up!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>David Chelimsky</name>
    </author>
    <id>tag:opensoul.org,2007-04-18:2724:2728</id>
    <published>2007-04-19T13:40:29Z</published>
    <updated>2007-04-19T13:40:29Z</updated>
    <category term="Code"/>
    <link href="http://opensoul.org/2007/4/18/rspec-model-should-be_valid" rel="alternate" type="text/html"/>
    <title>Comment on 'rspec: model.should be_valid' by David Chelimsky</title>
<content type="html">&lt;p&gt;Perfect use of custom matchers! Nice.&lt;/p&gt;


	&lt;p&gt;Cheers,
David&lt;/p&gt;</content>  </entry>
</feed>
