Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-883

FakeConstant does not resolve more than 2 levels

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.1.0
    • Component/s: Jobs
    • Labels:
      None

      Description

      When defining a job like:

      config/torquebox.rb
      Torquebox.configure do 
        job My::Deeply::Namespaced::Job do
          name 'My-Deeply-Namespaced-Job' 
          cron "* * * * * ?"
          config 'foo' => 'bar', 'baz' => 'wibble'
        end
      end
      

      And My::Deeply::Namespaced::Job exists in lib/my/deeply/namespaced/job.rb then the FakeConstant resolve blows up with an error like:

      15:32:50,093 ERROR [org.torquebox.core] (MSC service thread 1-4) ============================================================
      15:32:50,093 ERROR [org.torquebox.core] (MSC service thread 1-4) Failed to load '/Users/jeremy/Projects/problems/2012-07-06_torquebox/config/torquebox.rb':
      15:32:50,094 ERROR [org.torquebox.core] (MSC service thread 1-4)   (TypeError) My::Deeply is not a class/module
      15:32:50,094 ERROR [org.torquebox.core] (MSC service thread 1-4) ============================================================
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcrawley Toby Crawley
                Reporter:
                copiousfreetime Jeremy Hinegardner
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: