minor changes to spec_helper and user model
This commit is contained in:
@@ -18,6 +18,8 @@ class User < ActiveRecord::Base
|
||||
has_many :performance, :foreign_key => :user_id, :primary_key => :user_id, :dependent => :destroy
|
||||
|
||||
|
||||
private
|
||||
|
||||
def full_name
|
||||
"#{self.first_name} #{self.last_name}"
|
||||
end
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
ENV["RAILS_ENV"] ||= 'test'
|
||||
require File.expand_path("../../config/environment", __FILE__)
|
||||
require 'minitest/autorun'
|
||||
require 'rspec/rails'
|
||||
require 'rspec/autorun'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user