Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fatfreecrm/fat_free_crm into ffcrm
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 9, 2011
2 parents 63035c0 + 125cba4 commit ea6b9d2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/fat_free_crm/exportable.rb
Expand Up @@ -38,14 +38,14 @@ def user_id_full_name
end

def self.included(base)
if base.instance_methods.include?(:assignee)
if base.instance_methods.include?(:assignee) or base.instance_methods.include?('assignee')
define_method :assigned_to_full_name do
user = self.assignee
user ? user.full_name : ''
end
end

if base.instance_methods.include?(:completor)
if base.instance_methods.include?(:completor) or base.instance_methods.include?('completor')
define_method :completed_by_full_name do
user = self.completor
user ? user.full_name : ''
Expand Down
5 changes: 0 additions & 5 deletions spec/controllers/admin/field_groups_controller_spec.rb

This file was deleted.

4 changes: 0 additions & 4 deletions spec/factories.rb
Expand Up @@ -42,7 +42,3 @@
Date.today - x.days
end





3 changes: 1 addition & 2 deletions spec/spec_helper.rb
@@ -1,6 +1,6 @@
if ENV["COVERAGE"]
require 'simplecov'
SimpleCov.start 'rails'
SimpleCov.start 'rails'
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
Expand All @@ -14,7 +14,6 @@
# Load factories from plugins (to allow extra validations / etc.)
Dir.glob(Rails.root.join("vendor/plugins/**/spec/factories.rb")).each{ |f| require File.expand_path(f) }


# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
Expand Down

0 comments on commit ea6b9d2

Please sign in to comment.