jasmine 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,13 +2,15 @@ require 'jasmine'
2
2
 
3
3
  class Jasmine::Config
4
4
 
5
+ # Override these methods if necessary
6
+
5
7
  # def project_root
6
8
  # Dir.pwd
7
9
  # end
8
10
 
9
- # Path to your jasmine.yaml
11
+ # Path to your jasmine.yml
10
12
  # def simple_config_file
11
- # File.join(project_root, 'spec/javascripts/support/jasmine.yaml')
13
+ # File.join(project_root, 'spec/javascripts/support/jasmine.yml')
12
14
  # end
13
15
 
14
16
  # Source directory path. Your src_files must be returned relative to this path.
@@ -116,7 +116,7 @@ module Jasmine
116
116
  end
117
117
 
118
118
  def simple_config_file
119
- File.join(project_root, 'spec/javascripts/support/jasmine.yaml')
119
+ File.join(project_root, 'spec/javascripts/support/jasmine.yml')
120
120
  end
121
121
 
122
122
  def src_dir
@@ -160,4 +160,4 @@ module Jasmine
160
160
  end
161
161
 
162
162
  end
163
- end
163
+ end
@@ -24,7 +24,7 @@ describe Jasmine::Config do
24
24
  end
25
25
 
26
26
  it "if jasmine.yml is empty" do
27
- @config.stub!(:simple_config_file).and_return(File.join(@template_dir, 'spec/javascripts/support/jasmine.yaml'))
27
+ @config.stub!(:simple_config_file).and_return(File.join(@template_dir, 'spec/javascripts/support/jasmine.yml'))
28
28
  YAML.stub!(:load).and_return(false)
29
29
  @config.src_files.should == []
30
30
  @config.stylesheets.should == []
@@ -54,7 +54,7 @@ describe Jasmine::Config do
54
54
  @config.stylesheets.should == ['foo.css', 'bar.css']
55
55
  end
56
56
 
57
- it "using rails jasmine.yaml" do
57
+ it "using rails jasmine.yml" do
58
58
  original_glob = Dir.method(:glob)
59
59
  Dir.stub!(:glob).and_return do |glob_string|
60
60
  if glob_string =~ /public/
@@ -97,6 +97,11 @@ describe Jasmine::Config do
97
97
  @config.src_dir.should == 'some_project_root'
98
98
  end
99
99
 
100
+ it "should use correct default yaml config" do
101
+ @config.stub!(:project_root).and_return('some_project_root')
102
+ @config.simple_config_file.should == (File.join('some_project_root', 'spec/javascripts/support/jasmine.yml'))
103
+ end
104
+
100
105
 
101
106
  it "should provide dir mappings" do
102
107
  @config.mappings.should == {
@@ -105,4 +110,4 @@ describe Jasmine::Config do
105
110
  }
106
111
  end
107
112
 
108
- end
113
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajan Agaskar
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-27 00:00:00 -08:00
13
+ date: 2010-01-28 00:00:00 -08:00
14
14
  default_executable: jasmine
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency