Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit d5e44fe9a5aea1d000a7569709afdda4517867aa 1 parent 1d3991f
Ryan Carver authored June 30, 2011
2  jasmine-headless-webkit.gemspec
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20 20
   s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21 21
   s.require_paths = ["lib"]
22 22
 
23  
-  s.add_dependency 'jasmine'
  23
+  s.add_dependency 'jasmine', '~>1.1.beta'
24 24
   s.add_dependency 'coffee-script', '>= 2.2'
25 25
   s.add_dependency 'rainbow'
26 26
 end
4  lib/jasmine/files_list.rb
@@ -14,8 +14,8 @@ class FilesList
14 14
     attr_reader :files, :filtered_files, :spec_outside_scope
15 15
 
16 16
     DEFAULT_FILES = [
17  
-      File.join(Jasmine.root, "lib/jasmine.js"),
18  
-      File.join(Jasmine.root, "lib/jasmine-html.js"),
  17
+      File.join(Jasmine::Core.path, "jasmine.js"),
  18
+      File.join(Jasmine::Core.path, "jasmine-html.js"),
19 19
       File.expand_path('../../../jasmine/jasmine.headless-reporter.js', __FILE__)
20 20
     ]
21 21
 
4  spec/lib/jasmine/files_list_spec.rb
@@ -9,8 +9,8 @@
9 9
   describe '#initialize' do
10 10
     it "should have default files" do
11 11
       files_list.files.should == [
12  
-        File.join(Jasmine.root, "lib/jasmine.js"),
13  
-        File.join(Jasmine.root, "lib/jasmine-html.js"),
  12
+        File.join(Jasmine::Core.path, "jasmine.js"),
  13
+        File.join(Jasmine::Core.path, "jasmine-html.js"),
14 14
         File.expand_path('jasmine/jasmine.headless-reporter.js')
15 15
       ]
16 16
     end

0 notes on commit d5e44fe

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