Skip to content
Browse files

Able to run tests with just ruby _filename_

  • Loading branch information...
1 parent c6a99a9 commit 156da26d7afe3fa27b950a4db8a0559e073fc790 @brentvatne brentvatne committed Jan 27, 2013
View
2 test/test_helper.rb
@@ -3,7 +3,7 @@
require 'rails/test_help'
require 'capybara/rails'
require 'database_cleaner'
-require 'support/integration'
+require_relative 'support/integration'
require 'capybara-screenshot/minitest'
require_relative '../db/seeds/users'
View
2 test/unit/clinic_summary_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require_relative "../test_helper"
class ClinicSummaryTest < ActiveSupport::TestCase
def setup
View
2 test/unit/patient_assignment_test.rb
@@ -1,4 +1,4 @@
-require 'test_helper'
+require_relative '../test_helper'
class PatientAssignmentTest < ActiveSupport::TestCase
View
9 test/unit/patient_search_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require_relative "../test_helper"
class PatientSearchTest < ActiveSupport::TestCase
@@ -31,20 +31,19 @@ class PatientSearchTest < ActiveSupport::TestCase
assert ActiveRecord::Relation === @patient_search.execute
end
- test 'if the commit param is "Clear" then it returns an empty result set' do
+ test 'if the commit param is Clear then it returns an empty result set' do
@patient_search[:chart_number] = @jordan_byron.id
@patient_search[:commit] = "Clear"
assert_equal [], @patient_search.execute
end
- test 'if the commit param is "Clear" then clear out search params' do
+ test 'if the commit param is Clear then clear out search params' do
@patient_search[:chart_number] = @jordan_byron.id
@patient_search[:commit] = "Clear"
@patient_search.execute
refute @patient_search[:chart_number]
end
-
-end
+end
View
2 test/unit/patient_test.rb
@@ -1,4 +1,4 @@
-require "test_helper"
+require_relative "../test_helper"
class PatientTest < ActiveSupport::TestCase
View
2 test/unit/treatment_area_test.rb
@@ -1,4 +1,4 @@
-require 'test_helper'
+require_relative '../test_helper'
class TreatmentAreaTest < ActiveSupport::TestCase

1 comment on commit 156da26

@brentvatne

Probably good to have this anyways, but it was also necessary for my vimux ruby test script to work :)

Please sign in to comment.
Something went wrong with that request. Please try again.