test/acceptance/build_notifications_test.rb in integrity-0.1.9.0 vs test/acceptance/build_notifications_test.rb in integrity-0.1.9.1
- old
+ new
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + "/helpers"
-require File.dirname(__FILE__) + "/../helpers/acceptance/textfile_notifier"
+require "helpers/acceptance/textfile_notifier"
class BuildNotificationsTest < Test::Unit::AcceptanceTestCase
story <<-EOS
As an administrator,
I want to setup notifiers on my projects
@@ -9,10 +9,10 @@
EOS
before(:each) do
# This is needed before any available notifier is unset
# in the global #before
- load File.dirname(__FILE__) + "/../helpers/acceptance/textfile_notifier.rb"
+ load "helpers/acceptance/textfile_notifier.rb"
end
scenario "an admin sets up a notifier for a project that didn't have any" do
git_repo(:my_test_project).add_successful_commit
Project.gen(:my_test_project, :notifiers => [], :uri => git_repo(:my_test_project).path)