acurley/tracksys — Issue #2: AutomationMessage::APPS Behaving Weirdly
Author: acurley
Created: 2011-12-03 21:24:45+00:00
State: open

APPS is defined in hydraulics engine as ['hydraulics']. The value 'tracksys' is appended to the array in tracksys. Clearly the value is added to the APPS constant but does not appear to be output to the validation error message but is a valid value.

WTF?

Loading development environment (Rails 3.1.0)
ruby-1.9.2-p290 :001 > AutomationMessage::APPS
=> ["hydraulics", "tracksys"]
ruby-1.9.2-p290 :003 > a = AutomationMessage.create!(:app => "Andrew")
ActiveRecord::RecordInvalid: Validation failed: Message can't be blank, Processor can't be blank, Message type can't be blank, Message type must be one of these values: error, success, failure, info, Workflow type can't be blank, Workflow type must be one of these values: repository, qa, archive, patron, App must be one of these values: hydraulics
ruby-1.9.2-p290 :004 > a = AutomationMessage.create!(:app => "tracksys")
ActiveRecord::RecordInvalid: Validation failed: Message can't be blank, Processor can't be blank, Message type can't be blank, Message type must be one of these values: error, success, failure, info, Workflow type can't be blank, Workflow type must be one of these values: repository, qa, archive, patron