title: Devise/Rspec - Tested a user creation with (maybe) missing attributes (got true..)
body: <p>I am testing Devise with Rspec using Micheal Hartl source code (railstutorial)</p>
  
  <p>Whereas the confirmable module is enabled, I don't understand why this test pass:</p>
  
  <h1>spec/models/user_spec.rb</h1>
  
  <pre><code>require 'spec_helper'
  
  describe User do
  
    before(:each) do
      @attr = { :username =&gt; "ExampleUser", 
                :email =&gt; "user@example.com",
                :password =&gt; 'test1234',
              }
      end
  
    it "should create a new instance given valid attributes" do
      User.create!(@attr)
    end 
  end
  </code></pre>
  
  <p>Basically, I want to be sure of this code does, it tests the creation on the user, not this validation (cause the user has not confirmed yet and the test returns true) ? This is right?</p>
  
  <p>Moreover, I didn't provide attribute for password confirmation, and the user is still created!</p>
  
  <p>Is this mean that in the :validatable module there is not (?):</p>
  
  <pre><code>validates :password, :confirmation =&gt; true
  </code></pre>
  
  <p>Thanks to get you view on this!</p>