require 'rails_helper'

RSpec.describe User, type: :model do
  pending "add some examples to (or delete) #{__FILE__}"
  before :each do
    @user = User.new(firstname: "John", lastname: "Kan", email: "john.kan@virtuosity.co.nz")
  end

  describe '#new' do
    it "takes firstname, lastname, email as parameters" do
      @user.should be_an_instance_of User
    end 
  end

end

require 'rails_helper'

RSpec.describe User, type: :model do
  #pending "add some examples to (or delete) #{__FILE__}"
  before :each do
    @user = User.new(first_name: "John", last_name: "Kan", email: "john.kan@virtuosity.co.nz")
  end

  describe '#new' do
    it "takes first_name, last_name, email as parameters" do
      @user.should be_an_instance_of User
    end 
  end

end

Add test for new User
Add test for new User
