Skip to content

Commit 0acf4a8

Browse files
committed
Rewrite paths to be more explicit, since helper was trying to load helper.rb from simpleconsole lib, and not ours. There's prolly a better way to fix this, but i'm new!
1 parent abd78ad commit 0acf4a8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ task :default => :test
1111

1212
require 'rake/testtask'
1313
Rake::TestTask.new(:test) do |test|
14-
test.libs << 'lib' << 'test'
15-
test.pattern = 'test/**/test_*.rb'
16-
test.verbose = false
14+
test.libs << "test"
15+
test.test_files = FileList['test/test*.rb']
16+
test.verbose = true
1717
end
1818

1919
desc "Validate the gemspec"

test/helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# Simple stub to get a json version of a task payload
2222
def task_json
23-
File.open("examples/task.json", 'r').read
23+
File.open(File.dirname(__FILE__) + "/examples/task.json", 'r').read
2424
end
2525

2626
def boom_json(name)

test/test_auth.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require File.dirname(__FILE__) + "/helper"
22

33
module NirvanaHQTests
44

test/test_console.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'helper'
1+
require File.dirname(__FILE__) + "/helper"
22
require "nirv"
33

44
# Used to capture output, which we can then check against.

test/test_task.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require "helper"
1+
require File.dirname(__FILE__) + "/helper"
22
require 'yaml'
33

44
module NirvanaHQTests

0 commit comments

Comments
 (0)