change Jasmine.root to Jasmine::Core.path to work with jasmine 1.1

This commit is contained in:
Ryan Carver 2011-06-30 12:27:57 -07:00
parent 1d3991f52e
commit d5e44fe9a5
3 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_dependency 'jasmine'
s.add_dependency 'jasmine', '~>1.1.beta'
s.add_dependency 'coffee-script', '>= 2.2'
s.add_dependency 'rainbow'
end

View File

@ -14,8 +14,8 @@ module Jasmine
attr_reader :files, :filtered_files, :spec_outside_scope
DEFAULT_FILES = [
File.join(Jasmine.root, "lib/jasmine.js"),
File.join(Jasmine.root, "lib/jasmine-html.js"),
File.join(Jasmine::Core.path, "jasmine.js"),
File.join(Jasmine::Core.path, "jasmine-html.js"),
File.expand_path('../../../jasmine/jasmine.headless-reporter.js', __FILE__)
]

View File

@ -9,8 +9,8 @@ describe Jasmine::FilesList do
describe '#initialize' do
it "should have default files" do
files_list.files.should == [
File.join(Jasmine.root, "lib/jasmine.js"),
File.join(Jasmine.root, "lib/jasmine-html.js"),
File.join(Jasmine::Core.path, "jasmine.js"),
File.join(Jasmine::Core.path, "jasmine-html.js"),
File.expand_path('jasmine/jasmine.headless-reporter.js')
]
end