tobie/unittest_js — Issue #2: can't convert Pathname into String
Author: ngryman
Created: 2011-10-15 17:58:34+00:00
State: open

Hi,

I'm using **unittest_js** in the Rakefile of my project.
I've got the following error while requiring **unittest_js** : `can't convert Pathname into String`.

The error comes from these requires in **unittest_js.rb** :

require File.expand_path(File.join(File.dirname(__FILE__), 'unittest_js', 'dir_pathname'))
require File.expand_path(File.join(File.dirname(__FILE__), 'unittest_js', 'builder'))
require File.expand_path(File.join(File.dirname(__FILE__), 'unittest_js', 'webrick_runner'))
require File.expand_path(File.join(File.dirname(__FILE__), 'unittest_js', 'browsers'))

I've fixed the error by simplifying them, as you do `$:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'unittest_js'))` :

require 'dir_pathname'
require 'builder'
require 'webrick_runner'
require 'browsers'

Here is my version of ruby :

$ ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

I am not a ruby expert, but if this is correct, can you just update this file (I'm not going to make a pull request for this).
Thanks a lot!