learn-test 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_test/strategies/jasmine.rb +9 -4
- data/lib/learn_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a35082b3ec87c1cf3e5054290c389456c256bb85
|
4
|
+
data.tar.gz: bd0b064263faa86aacfcd977a1c80b8af0dd4441
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283912080f5d0951e90d1e440c0b4180e2554061a87698f242c272609e6762ef5718dd27abd898ab3b86b3446b7c0ddb915d99ef15dbe980cb368b271fb82166
|
7
|
+
data.tar.gz: 00966a47ddcdbc05f7ad154eebab78e7b39ecf30716b39693fc76418b96838d5bd699e7b65ea20bcab136ee3ba363da95b0f0756ce2113a25d56232d2a4f9a14
|
@@ -109,10 +109,15 @@ module LearnTest
|
|
109
109
|
|
110
110
|
def run_jasmine
|
111
111
|
if browser?
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
112
|
+
chrome_on_mac_path ="\"/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome\""
|
113
|
+
chrome_on_linux_path = "google-chrome"
|
114
|
+
jasmine_lab_path_for_chrome = "\"#{Dir.pwd}/tmpTestSupport/SpecRunner#{color_option}.html\" --allow-file-access-from-files"
|
115
|
+
|
116
|
+
if RUBY_PLATFORM.include?("linux")
|
117
|
+
system("#{chrome_on_linux_path} #{jasmine_lab_path_for_chrome}")
|
118
|
+
else
|
119
|
+
system("#{chrome_on_mac_path} #{jasmine_lab_path_for_chrome}")
|
120
|
+
end
|
116
121
|
else
|
117
122
|
system("phantomjs #{LearnTest::FileFinder.location_to_dir('strategies/jasmine/runners')}/run-jasmine.js #{Dir.pwd}/tmpTestSupport/SpecRunner#{color_option}.html")
|
118
123
|
end
|
data/lib/learn_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|