require 'spec_helper'

describe User do
  let(:user) { build(:user) }

  describe "#valid?" do
    describe "password" do
      it "password != password_confirmation is invalid" do
        user.password = "a"
        user.password_confirmation = "b"
        user.should_not be_valid
      end
    end
  end
end

require 'spec_helper'

describe User do
  let(:user) { build(:user) }

  describe "#valid?" do
    describe "password" do
      it "password != password_confirmation is invalid" do
        user.current_password = user.password
        user.password = "aaaaaaaa"
        user.password_confirmation = "bbbbbbbb"
        user.should_not be_valid
      end
    end
  end
end

Fix the broken model spec
Fix the broken model spec

Before, validated user is invalid, but other validations cause (length,
and wrong current_password)
