jasmine 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jasmine.gemspec +2 -12
- data/lib/jasmine/base.rb +1 -1
- data/lib/jasmine/config.rb +4 -5
- data/lib/jasmine/configuration.rb +5 -3
- data/lib/jasmine/dependencies.rb +0 -4
- data/lib/jasmine/ruby_versions.rb +11 -0
- data/lib/jasmine/server.rb +3 -9
- data/lib/jasmine/version.rb +1 -1
- data/release_notes/v2.6.1.md +11 -0
- data/release_notes/v2.7.0.md +28 -0
- data/spec/application_integration_spec.rb +3 -3
- data/spec/application_spec.rb +16 -16
- data/spec/base_spec.rb +13 -11
- data/spec/configuration_spec.rb +29 -27
- data/spec/jasmine_command_line_tool_spec.rb +34 -34
- data/spec/jasmine_pojs_spec.rb +22 -22
- data/spec/jasmine_rails_spec.rb +30 -26
- data/spec/lib/jasmine/formatters/console_spec.rb +20 -20
- data/spec/lib/jasmine/formatters/multi_spec.rb +6 -6
- data/spec/page_spec.rb +2 -2
- data/spec/path_expander_spec.rb +6 -6
- data/spec/path_mapper_spec.rb +10 -10
- data/spec/performance/phantom_js_runner_performance_spec.rb +1 -1
- data/spec/rack/jasmine/runner_spec.rb +2 -2
- data/spec/result_spec.rb +8 -8
- data/spec/server_spec.rb +13 -49
- data/spec/yaml_config_parser_spec.rb +21 -21
- metadata +7 -4
@@ -8,20 +8,20 @@ describe Jasmine::Formatters::Multi do
|
|
8
8
|
|
9
9
|
results1 = double(:results1)
|
10
10
|
|
11
|
-
formatter1.
|
12
|
-
formatter2.
|
11
|
+
expect(formatter1).to receive(:format).with(results1)
|
12
|
+
expect(formatter2).to receive(:format).with(results1)
|
13
13
|
multi.format(results1)
|
14
14
|
|
15
15
|
results2 = double(:results1)
|
16
16
|
|
17
|
-
formatter1.
|
18
|
-
formatter2.
|
17
|
+
expect(formatter1).to receive(:format).with(results2)
|
18
|
+
expect(formatter2).to receive(:format).with(results2)
|
19
19
|
multi.format(results2)
|
20
20
|
|
21
21
|
run_details = double(:run_details)
|
22
22
|
|
23
|
-
formatter1.
|
24
|
-
formatter2.
|
23
|
+
expect(formatter1).to receive(:done).with(run_details)
|
24
|
+
expect(formatter2).to receive(:done).with(run_details)
|
25
25
|
multi.done(run_details)
|
26
26
|
end
|
27
27
|
end
|
data/spec/page_spec.rb
CHANGED
@@ -12,12 +12,12 @@ describe Jasmine::Page do
|
|
12
12
|
let(:page) { Jasmine::Page.new(context) }
|
13
13
|
it "should render javascript files in the correct order" do
|
14
14
|
js_files = subject.css("script")
|
15
|
-
js_files.map { |file| file["src"] }.compact.
|
15
|
+
expect(js_files.map { |file| file["src"] }.compact).to eq ["file1.js", "file2.js"]
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should render css files in the correct order" do
|
19
19
|
css_files = subject.css("link[type='text/css']")
|
20
|
-
css_files.map { |file| file["href"] }.compact.
|
20
|
+
expect(css_files.map { |file| file["href"] }.compact).to eq ["file1.css", "file2.css"]
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
data/spec/path_expander_spec.rb
CHANGED
@@ -19,7 +19,7 @@ describe Jasmine::PathExpander do
|
|
19
19
|
dir_glob
|
20
20
|
)
|
21
21
|
|
22
|
-
expanded_files.
|
22
|
+
expect(expanded_files).to eq [
|
23
23
|
File.join('some_base', 'src1.js'),
|
24
24
|
File.join('some_base', 'src15.js'),
|
25
25
|
File.join('some_base', 'src2.js')
|
@@ -44,7 +44,7 @@ describe Jasmine::PathExpander do
|
|
44
44
|
dir_glob
|
45
45
|
)
|
46
46
|
|
47
|
-
expanded_files.
|
47
|
+
expect(expanded_files).to eq [
|
48
48
|
File.join('some_base', 'src1.js'),
|
49
49
|
File.join('some_base', 'src15.js'),
|
50
50
|
File.join('some_base', 'src2.js')
|
@@ -69,7 +69,7 @@ describe Jasmine::PathExpander do
|
|
69
69
|
dir_glob
|
70
70
|
)
|
71
71
|
|
72
|
-
expanded_files.
|
72
|
+
expect(expanded_files).to eq [
|
73
73
|
File.join('some_base', 'src1.js'),
|
74
74
|
File.join('some_base', 'src1zzz.js'),
|
75
75
|
File.join('some_base', 'src0.js')
|
@@ -96,7 +96,7 @@ describe Jasmine::PathExpander do
|
|
96
96
|
dir_glob
|
97
97
|
)
|
98
98
|
|
99
|
-
expanded_files.
|
99
|
+
expect(expanded_files).to eq [
|
100
100
|
File.join('some_base', 'src15.js'),
|
101
101
|
File.join('some_base', 'src2.js')
|
102
102
|
]
|
@@ -114,7 +114,7 @@ describe Jasmine::PathExpander do
|
|
114
114
|
dir_glob
|
115
115
|
)
|
116
116
|
|
117
|
-
expanded_files.
|
117
|
+
expect(expanded_files).to eq [
|
118
118
|
File.join('some_base', 'src2.js')
|
119
119
|
]
|
120
120
|
end
|
@@ -131,7 +131,7 @@ describe Jasmine::PathExpander do
|
|
131
131
|
dir_glob
|
132
132
|
)
|
133
133
|
|
134
|
-
expanded_files.
|
134
|
+
expect(expanded_files).to eq [
|
135
135
|
'http://www.google.com'
|
136
136
|
]
|
137
137
|
end
|
data/spec/path_mapper_spec.rb
CHANGED
@@ -4,35 +4,35 @@ describe Jasmine::PathMapper do
|
|
4
4
|
it "correctly remaps src files" do
|
5
5
|
config = double(:config, :src_dir => '/src_dir', :src_path => '/__src__')
|
6
6
|
mapper = Jasmine::PathMapper.new(config)
|
7
|
-
mapper.map_src_paths(['/src_dir/foo']).
|
8
|
-
mapper.map_src_paths(['foo/bar']).
|
7
|
+
expect(mapper.map_src_paths(['/src_dir/foo'])).to eq ['/__src__/foo']
|
8
|
+
expect(mapper.map_src_paths(['foo/bar'])).to eq ['/__src__/foo/bar']
|
9
9
|
end
|
10
10
|
it "correctly remaps spec files" do
|
11
11
|
config = double(:config, :spec_dir => '/spec_dir', :spec_path => '/__spec__')
|
12
12
|
mapper = Jasmine::PathMapper.new(config)
|
13
|
-
mapper.map_spec_paths(['/spec_dir/foo']).
|
14
|
-
mapper.map_spec_paths(['foo/bar']).
|
13
|
+
expect(mapper.map_spec_paths(['/spec_dir/foo'])).to eq ['/__spec__/foo']
|
14
|
+
expect(mapper.map_spec_paths(['foo/bar'])).to eq ['/__spec__/foo/bar']
|
15
15
|
end
|
16
16
|
it "correctly remaps jasmine files" do
|
17
17
|
config = double(:config, :jasmine_dir => '/jasmine_dir', :jasmine_path => '/__jasmine__')
|
18
18
|
mapper = Jasmine::PathMapper.new(config)
|
19
|
-
mapper.map_jasmine_paths(['/jasmine_dir/foo']).
|
20
|
-
mapper.map_jasmine_paths(['foo/bar']).
|
19
|
+
expect(mapper.map_jasmine_paths(['/jasmine_dir/foo'])).to eq ['/__jasmine__/foo']
|
20
|
+
expect(mapper.map_jasmine_paths(['foo/bar'])).to eq ['/__jasmine__/foo/bar']
|
21
21
|
end
|
22
22
|
it "correctly remaps boot files" do
|
23
23
|
config = double(:config, :boot_dir => '/boot_dir', :boot_path => '/__boot__')
|
24
24
|
mapper = Jasmine::PathMapper.new(config)
|
25
|
-
mapper.map_boot_paths(['/boot_dir/foo']).
|
26
|
-
mapper.map_boot_paths(['foo/bar']).
|
25
|
+
expect(mapper.map_boot_paths(['/boot_dir/foo'])).to eq ['/__boot__/foo']
|
26
|
+
expect(mapper.map_boot_paths(['foo/bar'])).to eq ['/__boot__/foo/bar']
|
27
27
|
end
|
28
28
|
it "handles edge case where dir == path" do
|
29
29
|
config = double(:config, :src_dir => '/src_dir', :src_path => '/src_dir')
|
30
30
|
mapper = Jasmine::PathMapper.new(config)
|
31
|
-
mapper.map_src_paths(['/src_dir/foo']).
|
31
|
+
expect(mapper.map_src_paths(['/src_dir/foo'])).to eq ['/src_dir/foo']
|
32
32
|
end
|
33
33
|
it 'handles edge case with multiple instances of src dir' do
|
34
34
|
config = double(:config, :src_dir => '/app', :src_path => '/')
|
35
35
|
mapper = Jasmine::PathMapper.new(config)
|
36
|
-
mapper.map_src_paths(['/app/assets/application.js']).
|
36
|
+
expect(mapper.map_src_paths(['/app/assets/application.js'])).to eq ['/assets/application.js']
|
37
37
|
end
|
38
38
|
end
|
@@ -18,6 +18,6 @@ describe "Phantom JS Runner performance/integration suite", :performance => true
|
|
18
18
|
FileUtils.cp(File.join(@root, 'spec', 'fixture', 'large_test_suite_spec.js'), File.join(@tmp, 'spec', 'javascripts'))
|
19
19
|
|
20
20
|
ci_output = `rake --trace jasmine:ci`
|
21
|
-
ci_output.
|
21
|
+
expect(ci_output).to match (/40000 specs, 20000 failures/)
|
22
22
|
end
|
23
23
|
end
|
@@ -11,14 +11,14 @@ describe Rack::Jasmine::Runner do
|
|
11
11
|
let(:expected_headers) { {"Content-Type" => "text/html"} }
|
12
12
|
let(:path) { "/" }
|
13
13
|
it "should return a response with the passed content" do
|
14
|
-
subject.
|
14
|
+
expect(subject).to eq [200, expected_headers, [content]]
|
15
15
|
end
|
16
16
|
end
|
17
17
|
context "PATH_INFO is not /" do
|
18
18
|
let(:path) { "/some_foo" }
|
19
19
|
let(:expected_headers) { {"Content-Type" => "text/plain", "X-Cascade" => "pass"} }
|
20
20
|
it "should return a 404" do
|
21
|
-
subject.
|
21
|
+
expect(subject).to eq [404, expected_headers, ["File not found: #{path}\n"]]
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/spec/result_spec.rb
CHANGED
@@ -5,8 +5,8 @@ describe Jasmine::Result do
|
|
5
5
|
it "exposes failed expectations" do
|
6
6
|
result = Jasmine::Result.new(failing_raw_result)
|
7
7
|
expectation = result.failed_expectations[0]
|
8
|
-
expectation.message.
|
9
|
-
expectation.stack.
|
8
|
+
expect(expectation.message).to eq "a failure message"
|
9
|
+
expect(expectation.stack).to eq "a stack trace"
|
10
10
|
end
|
11
11
|
|
12
12
|
it "exposes only the last 7 lines of the stack trace" do
|
@@ -15,10 +15,10 @@ describe Jasmine::Result do
|
|
15
15
|
|
16
16
|
result = Jasmine::Result.new(raw_result)
|
17
17
|
expectation = result.failed_expectations[0].stack
|
18
|
-
expectation.
|
19
|
-
expectation.
|
20
|
-
expectation.
|
21
|
-
expectation.
|
18
|
+
expect(expectation).to match(/1/)
|
19
|
+
expect(expectation).to match(/7/)
|
20
|
+
expect(expectation).to_not match(/8/)
|
21
|
+
expect(expectation).to_not match(/9/)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "exposes the full stack trace when configured" do
|
@@ -28,7 +28,7 @@ describe Jasmine::Result do
|
|
28
28
|
|
29
29
|
result = Jasmine::Result.new(raw_result.merge!("show_full_stack_trace" => true))
|
30
30
|
expectation = result.failed_expectations[0].stack
|
31
|
-
expectation.
|
31
|
+
expect(expectation).to eq stack_trace
|
32
32
|
end
|
33
33
|
|
34
34
|
it "handles failed specs with no stack trace" do
|
@@ -36,7 +36,7 @@ describe Jasmine::Result do
|
|
36
36
|
|
37
37
|
result = Jasmine::Result.new(raw_result)
|
38
38
|
expectation = result.failed_expectations[0].stack
|
39
|
-
expectation.
|
39
|
+
expect(expectation).to match(/No stack/)
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
data/spec/server_spec.rb
CHANGED
@@ -1,58 +1,22 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Jasmine::Server do
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
end
|
8
|
-
|
9
|
-
it "should run the handler with the application" do
|
10
|
-
server = double(:server)
|
11
|
-
port = 1234
|
12
|
-
fake_env = {}
|
13
|
-
application = double(:application)
|
14
|
-
expect(Rack::Handler).to receive(:get).with("webrick").and_return(server)
|
15
|
-
expect(server).to receive(:run).with(application, hash_including(:Port => port))
|
16
|
-
Jasmine::Server.new(port, application, nil, fake_env).start
|
17
|
-
expect(fake_env['PORT']).to eq('1234')
|
4
|
+
before do
|
5
|
+
if !Rack.constants.include?(:Server)
|
6
|
+
Rack::Server = double("Rack::Server")
|
18
7
|
end
|
8
|
+
@fake_env = {}
|
19
9
|
end
|
20
10
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
Rack::Server = double("Rack::Server")
|
26
|
-
end
|
27
|
-
@fake_env = {}
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should create a Rack::Server with the correct port when passed" do
|
31
|
-
port = 1234
|
32
|
-
expect(Rack::Server).to receive(:new).with(hash_including(:Port => port)).and_return(double(:server).as_null_object)
|
33
|
-
Jasmine::Server.new(port, double(:app), nil, @fake_env).start
|
34
|
-
end
|
35
|
-
|
36
|
-
it "should start the server" do
|
37
|
-
server = double(:server)
|
38
|
-
expect(Rack::Server).to receive(:new) { server.as_null_object }
|
39
|
-
expect(server).to receive(:start)
|
40
|
-
Jasmine::Server.new('8888', double(:app), nil, @fake_env).start
|
41
|
-
end
|
42
|
-
|
43
|
-
it "should set the app as the instance variable on the rack server" do
|
44
|
-
app = double('application')
|
45
|
-
server = double(:server)
|
46
|
-
expect(Rack::Server).to receive(:new) { server.as_null_object }
|
47
|
-
Jasmine::Server.new(1234, app, nil, @fake_env).start
|
48
|
-
expect(server.instance_variable_get(:@app)).to eq app
|
49
|
-
end
|
11
|
+
it "should start the server" do
|
12
|
+
expect(Rack::Server).to receive(:start) { double(:server).as_null_object }
|
13
|
+
Jasmine::Server.new('8888', double(:app), nil, @fake_env).start
|
14
|
+
end
|
50
15
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
end
|
16
|
+
it "should pass rack options when starting the server" do
|
17
|
+
app = double('application')
|
18
|
+
expect(Rack::Server).to receive(:start).with(hash_including(:app => app, :Port => 1234, :foo => 'bar')).and_return(double(:server).as_null_object)
|
19
|
+
Jasmine::Server.new(1234, app, {:foo => 'bar', :Port => 4321}, @fake_env).start
|
20
|
+
expect(@fake_env['PORT']).to eq('1234')
|
57
21
|
end
|
58
22
|
end
|
@@ -8,7 +8,7 @@ describe Jasmine::YamlConfigParser do
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
11
|
-
parser.src_dir.
|
11
|
+
expect(parser.src_dir).to eq 'some_project_root'
|
12
12
|
end
|
13
13
|
|
14
14
|
it "src_dir returns src_dir if set" do
|
@@ -18,7 +18,7 @@ describe Jasmine::YamlConfigParser do
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
21
|
-
parser.src_dir.
|
21
|
+
expect(parser.src_dir).to eq File.join('some_project_root', 'some_src_dir')
|
22
22
|
end
|
23
23
|
|
24
24
|
it "jasmine_dir returns nil when jasmine dir is blank" do
|
@@ -28,7 +28,7 @@ describe Jasmine::YamlConfigParser do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
31
|
-
parser.jasmine_dir.
|
31
|
+
expect(parser.jasmine_dir).to be_nil
|
32
32
|
end
|
33
33
|
|
34
34
|
it "jasmine_dir returns jasmine_dir if set" do
|
@@ -38,7 +38,7 @@ describe Jasmine::YamlConfigParser do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
41
|
-
parser.jasmine_dir.
|
41
|
+
expect(parser.jasmine_dir).to eq File.join('some_project_root', 'some_jasmine_dir')
|
42
42
|
end
|
43
43
|
|
44
44
|
it "spec_helper returns default helper path when spec_helper is blank" do
|
@@ -48,7 +48,7 @@ describe Jasmine::YamlConfigParser do
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
51
|
-
parser.spec_helper.
|
51
|
+
expect(parser.spec_helper).to eq 'some_project_root/spec/javascripts/support/jasmine_helper.rb'
|
52
52
|
end
|
53
53
|
|
54
54
|
it "spec_helper returns spec_helper if set" do
|
@@ -58,7 +58,7 @@ describe Jasmine::YamlConfigParser do
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
61
|
-
parser.spec_helper.
|
61
|
+
expect(parser.spec_helper).to eq 'some_project_root/some_spec_helper.rb'
|
62
62
|
end
|
63
63
|
|
64
64
|
it "boot_dir returns nil when boot dir is blank" do
|
@@ -68,7 +68,7 @@ describe Jasmine::YamlConfigParser do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
71
|
-
parser.boot_dir.
|
71
|
+
expect(parser.boot_dir).to be_nil
|
72
72
|
end
|
73
73
|
|
74
74
|
it "boot_dir returns boot_dir if set" do
|
@@ -78,7 +78,7 @@ describe Jasmine::YamlConfigParser do
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
81
|
-
parser.boot_dir.
|
81
|
+
expect(parser.boot_dir).to eq File.join('some_project_root', 'some_boot_dir')
|
82
82
|
end
|
83
83
|
|
84
84
|
it "spec_dir uses default path when spec dir is blank" do
|
@@ -88,7 +88,7 @@ describe Jasmine::YamlConfigParser do
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
91
|
-
parser.spec_dir.
|
91
|
+
expect(parser.spec_dir).to eq File.join('some_project_root', 'spec', 'javascripts')
|
92
92
|
end
|
93
93
|
|
94
94
|
it "spec_dir returns spec_dir if set" do
|
@@ -98,7 +98,7 @@ describe Jasmine::YamlConfigParser do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', nil, yaml_loader)
|
101
|
-
parser.spec_dir.
|
101
|
+
expect(parser.spec_dir).to eq File.join('some_project_root', 'some_spec_dir')
|
102
102
|
end
|
103
103
|
|
104
104
|
it "expands src_file paths" do
|
@@ -115,7 +115,7 @@ describe Jasmine::YamlConfigParser do
|
|
115
115
|
|
116
116
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
117
117
|
|
118
|
-
parser.src_files.
|
118
|
+
expect(parser.src_files).to eq ['expected_results']
|
119
119
|
end
|
120
120
|
|
121
121
|
it "expands stylesheets paths" do
|
@@ -132,7 +132,7 @@ describe Jasmine::YamlConfigParser do
|
|
132
132
|
|
133
133
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
134
134
|
|
135
|
-
parser.css_files.
|
135
|
+
expect(parser.css_files).to eq ['expected_results']
|
136
136
|
end
|
137
137
|
|
138
138
|
it "expands spec_file paths" do
|
@@ -149,7 +149,7 @@ describe Jasmine::YamlConfigParser do
|
|
149
149
|
|
150
150
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
151
151
|
|
152
|
-
parser.spec_files.
|
152
|
+
expect(parser.spec_files).to eq ['expected_results']
|
153
153
|
end
|
154
154
|
|
155
155
|
it "expands jasmine_file paths" do
|
@@ -166,7 +166,7 @@ describe Jasmine::YamlConfigParser do
|
|
166
166
|
|
167
167
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
168
168
|
|
169
|
-
parser.jasmine_files.
|
169
|
+
expect(parser.jasmine_files).to eq ['expected_results']
|
170
170
|
end
|
171
171
|
|
172
172
|
it "expands boot_file paths" do
|
@@ -183,7 +183,7 @@ describe Jasmine::YamlConfigParser do
|
|
183
183
|
|
184
184
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
185
185
|
|
186
|
-
parser.boot_files.
|
186
|
+
expect(parser.boot_files).to eq ['expected_results']
|
187
187
|
end
|
188
188
|
|
189
189
|
it "expands jasmine css file paths" do
|
@@ -200,7 +200,7 @@ describe Jasmine::YamlConfigParser do
|
|
200
200
|
|
201
201
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
202
202
|
|
203
|
-
parser.jasmine_css_files.
|
203
|
+
expect(parser.jasmine_css_files).to eq ['expected_results']
|
204
204
|
end
|
205
205
|
|
206
206
|
it "expands helper paths" do
|
@@ -217,7 +217,7 @@ describe Jasmine::YamlConfigParser do
|
|
217
217
|
|
218
218
|
parser = Jasmine::YamlConfigParser.new('some_path', 'some_project_root', expander, yaml_loader)
|
219
219
|
|
220
|
-
parser.helpers.
|
220
|
+
expect(parser.helpers).to eq ['expected_results']
|
221
221
|
end
|
222
222
|
|
223
223
|
it "doesn't blow up when blank values are passed" do
|
@@ -230,10 +230,10 @@ describe Jasmine::YamlConfigParser do
|
|
230
230
|
end
|
231
231
|
|
232
232
|
parser = Jasmine::YamlConfigParser.new({}, 'some_project_root', expander, yaml_loader)
|
233
|
-
parser.src_files.
|
234
|
-
parser.spec_files.
|
235
|
-
parser.css_files.
|
236
|
-
parser.helpers.
|
233
|
+
expect(parser.src_files).to eq []
|
234
|
+
expect(parser.spec_files).to eq []
|
235
|
+
expect(parser.css_files).to eq []
|
236
|
+
expect(parser.helpers).to eq []
|
237
237
|
end
|
238
238
|
|
239
239
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Van Hove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -86,7 +86,7 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: 2.7.0
|
90
90
|
- - "<"
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.0.0
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 2.
|
99
|
+
version: 2.7.0
|
100
100
|
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 3.0.0
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- lib/jasmine/path_mapper.rb
|
193
193
|
- lib/jasmine/railtie.rb
|
194
194
|
- lib/jasmine/result.rb
|
195
|
+
- lib/jasmine/ruby_versions.rb
|
195
196
|
- lib/jasmine/run.html.erb
|
196
197
|
- lib/jasmine/runners/phantom_boot.js
|
197
198
|
- lib/jasmine/runners/phantom_jasmine_run.js
|
@@ -219,6 +220,8 @@ files:
|
|
219
220
|
- release_notes/v2.5.1.md
|
220
221
|
- release_notes/v2.5.2.md
|
221
222
|
- release_notes/v2.6.0.md
|
223
|
+
- release_notes/v2.6.1.md
|
224
|
+
- release_notes/v2.7.0.md
|
222
225
|
- spec/application_integration_spec.rb
|
223
226
|
- spec/application_spec.rb
|
224
227
|
- spec/base_spec.rb
|