jasmine 0.10.3.1 → 0.10.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jasmine/config.rb +1 -1
- data/spec/config_spec.rb +41 -1
- metadata +3 -3
data/lib/jasmine/config.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -87,6 +87,46 @@ describe Jasmine::Config do
|
|
87
87
|
|
88
88
|
end
|
89
89
|
|
90
|
+
describe "should use the first appearance of duplicate filenames" do
|
91
|
+
before(:each) do
|
92
|
+
Dir.stub!(:glob).and_return do |glob_string|
|
93
|
+
glob_string
|
94
|
+
end
|
95
|
+
fake_config = Hash.new.stub!(:[]).and_return(["file1.ext", "file2.ext", "file1.ext"])
|
96
|
+
@config.stub!(:simple_config).and_return(fake_config)
|
97
|
+
end
|
98
|
+
|
99
|
+
it "src_files" do
|
100
|
+
@config.src_files.should == ['file1.ext', 'file2.ext']
|
101
|
+
end
|
102
|
+
|
103
|
+
it "stylesheets" do
|
104
|
+
@config.stylesheets.should == ['file1.ext', 'file2.ext']
|
105
|
+
end
|
106
|
+
|
107
|
+
it "spec_files" do
|
108
|
+
@config.spec_files.should == ['file1.ext', 'file2.ext']
|
109
|
+
end
|
110
|
+
|
111
|
+
it "helpers" do
|
112
|
+
@config.spec_files.should == ['file1.ext', 'file2.ext']
|
113
|
+
end
|
114
|
+
|
115
|
+
it "js_files" do
|
116
|
+
@config.js_files.should == ["/file1.ext",
|
117
|
+
"/file2.ext",
|
118
|
+
"/__spec__/file1.ext",
|
119
|
+
"/__spec__/file2.ext",
|
120
|
+
"/__spec__/file1.ext",
|
121
|
+
"/__spec__/file2.ext"]
|
122
|
+
end
|
123
|
+
|
124
|
+
it "spec_files_full_paths" do
|
125
|
+
@config.spec_files_full_paths.should == ["/Users/ragaskar/workspace/jasmine-ruby/generators/jasmine/templates/spec/javascripts/file1.ext",
|
126
|
+
"/Users/ragaskar/workspace/jasmine-ruby/generators/jasmine/templates/spec/javascripts/file2.ext"]
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|
90
130
|
|
91
131
|
it "simple_config stylesheets" do
|
92
132
|
@config.stub!(:simple_config_file).and_return(File.join(@template_dir, 'spec/javascripts/support/jasmine.yml'))
|
@@ -161,7 +201,7 @@ describe Jasmine::Config do
|
|
161
201
|
and_return(mock(Jasmine::SeleniumDriver, :connect => true))
|
162
202
|
config.start
|
163
203
|
end
|
164
|
-
|
204
|
+
end
|
165
205
|
|
166
206
|
describe "jasmine host" do
|
167
207
|
it "should use http://localhost by default" do
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 10
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.10.3.
|
9
|
+
- 2
|
10
|
+
version: 0.10.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rajan Agaskar
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-04-
|
19
|
+
date: 2010-04-20 00:00:00 -07:00
|
20
20
|
default_executable: jasmine
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|