title: Rspec2 testing a before_validation method
body: <p>I have the following to remove the spaces on a specific attribute.</p>
  
  <pre><code>#before_validation :strip_whitespace
  
  protected
    def strip_whitespace
      self.title = self.title.strip
    end
  </code></pre>
  
  <p>And I want to test it. For now, I've tried:</p>
  
  <pre><code>it "shouldn't create a new part with title beggining with space" do
     @part = Part.new(@attr.merge(:title =&gt; " Test"))
     @part.title.should.eql?("Test")
  end
  </code></pre>
  
  <p>What am I missing?</p>