title: ArgumentError:wrong number of arguments (1 for 0)
body: <p>So how we resolve the error in initialize function,Which thing need to be done to remove this error</p>
  
  <blockquote>
    <p>Here is the Factories/user.rb</p>
  </blockquote>
  
  <pre><code>FactoryGirl.define do
    factory :user do |u|
      u.first_name Faker::Name.first_name
      u.last_name Faker::Name.last_name
      u.email Faker::Internet.email
      u.username Faker::Name.name
      u.title Faker::Name.title
      u.password "hellohello"
      u.password_confirmation "hellohello"
   end
  end
  </code></pre>
  
  <blockquote>
    <p>Here is the mode spec model/user_spec.rb</p>
  </blockquote>
  
  <pre><code>require 'rails_helper'
  
  RSpec.describe User, :type =&gt; :model do
  
    user = ''
    describe "create" do
      user = FactoryGirl.create(:user)
    end
    #describe "validations"
    describe "Count all the user" do
      it "should have one item created before being created" do
        #binding.pry
        expect(User.all.count).to eq(1)
      end
   end
  end 
  </code></pre>
  
  <p>When testing the model user_spec.rb model it gives the error:
  <a href="https://i.stack.imgur.com/LDIjQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LDIjQ.png" alt="enter image description here"></a></p>