title: Why a upcase function made my rspec test to fail?
body: <p>I'm developing a sign in/out function on a web app that i'm building for learning.</p>
  
  <p>During the week, i wasn't able to pass the following rspec test:</p>
  
  <pre><code>    describe "sucessfull log in" do
      let(:user) {FactoryGirl.create(:user)}
  
      before do
          visit signin_path
          fill_in "Email", with: user.email.upcase
          fill_in "Password", with: user.password
          click_button 'Sign in'
      end
  
      it {should have_title(user.name)}
      it {should have_link('Account')}
      it {should have_link('Profile', href: user_path(user))}
      it {should have_link('Sign out', href: signout_path)}
  end
  </code></pre>
  
  <p>Then yesterday and end up re writing this code again, but forgot to add that <code>.upcase</code> function. I Left just <code>.upcase.email</code>. Suddenly, the test passed.</p>
  
  <p>Ok, i'm a newbie developer... so what happaned? Why the upcase function did not let rspec log in successfully?</p>
  
  <p>thanks in advance!</p>