test/helpers/acceptance/textfile_notifier.rb in integrity-0.1.8 vs test/helpers/acceptance/textfile_notifier.rb in integrity-0.1.9

- old
+ new

@@ -6,21 +6,21 @@ %p.normal %label{ :for => "textfile_notifier_file" } File %input.text#textfile_notifier_file{ :name => "notifiers[Textfile][file]", :type => "text", :value => config["file"] } haml end - + def initialize(build, config={}) super @file = @config["file"] end - + def deliver! File.open(@file, "a") do |f| f.puts "=== #{short_message} ===" f.puts f.puts full_message end end end end -end \ No newline at end of file +end