Skip to content

Commit

Permalink
Fixing path dependencies, don't be clever about where the config form…
Browse files Browse the repository at this point in the history
… is at
  • Loading branch information
foca committed Nov 15, 2008
1 parent 85f5444 commit f839dae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/notifier/email.rb
Expand Up @@ -6,6 +6,10 @@ module Integrity
class Notifier
class Email < Notifier::Base
attr_reader :to, :from

def self.to_haml
File.read File.dirname(__FILE__) / "config.haml"
end

def initialize(build, config={})
@to = config.delete("to")
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
@@ -1,4 +1,5 @@
require "rubygems"
require "integrity"
require File.dirname(__FILE__) / ".." / "lib" / "notifier" / "email"

require Integrity.root / "spec" / "spec_helper"

0 comments on commit f839dae

Please sign in to comment.