Class: AutomobileRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
BrighterPlanet::Automobile, Sniff::Emitter
Defined in:
lib/test_support/automobile_record.rb

Class Method Summary collapse

Methods included from BrighterPlanet::Automobile

automobile_model

Class Method Details

.add_implicit_characteristicsObject



12
13
14
15
16
# File 'lib/test_support/automobile_record.rb', line 12

def add_implicit_characteristics
  decisions[:emission].committees.map(&:name).reject { |c| characteristics.keys.unshift(:emission).include? c }.each do |c|
    characterize { has c }
  end
end

.nObject



8
9
10
# File 'lib/test_support/automobile_record.rb', line 8

def n
  new :make => AutomobileMake.find_by_name('Nissan')
end