Change requires so export/upstart_spec can be run on its own.

This commit is contained in:
Dan Peterson
2011-05-13 11:43:32 -03:00
parent f34f161899
commit 124e27ed22
5 changed files with 5 additions and 3 deletions

View File

@@ -4,5 +4,6 @@ module Foreman::Export
class Exception < ::Exception; end
end
require "foreman/export/base"
require "foreman/export/inittab"
require "foreman/export/upstart"

View File

@@ -1,4 +1,4 @@
require "foreman/export/base"
require "foreman/export"
class Foreman::Export::Inittab < Foreman::Export::Base

View File

@@ -1,5 +1,5 @@
require "erb"
require "foreman/export/base"
require "foreman/export"
class Foreman::Export::Upstart < Foreman::Export::Base

View File

@@ -1,4 +1,5 @@
require "spec_helper"
require "foreman/engine"
require "foreman/export/upstart"
describe Foreman::Export::Upstart do

View File

@@ -3,7 +3,7 @@ require "rspec"
require "fakefs/safe"
require "fakefs/spec_helpers"
$:.unshift "lib"
$:.unshift File.expand_path("../../lib", __FILE__)
def mock_error(subject, message)
mock_exit do