learn-test 2.2.0 → 2.2.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76fa238197b63d9b5d730b6d9ed75476859e2610
4
- data.tar.gz: bc20f0414b90103f04d043cece7be855121479cc
3
+ metadata.gz: a35082b3ec87c1cf3e5054290c389456c256bb85
4
+ data.tar.gz: bd0b064263faa86aacfcd977a1c80b8af0dd4441
5
5
  SHA512:
6
- metadata.gz: f79e4e8b4a637714adb32667229f867dee722376c367d7a5e392c6e0ec25d2ba4fed0cd64049b9ee3e602ddd03bb5362421a28689e1e930730cbef79ee0317ee
7
- data.tar.gz: c40a9141b7b145cb54ee969a927349b922c39bbf3200a278849758e8380fcbf5b110befcc215420a7650d4465a3a3108b743350b29ebe4eb7ee93690e10a6853
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
- # system("open #{LearnTest::FileFinder.location_to_dir('jasmine/runners')}/SpecRunner#{color_option}.html --args allow-file-access-from-files")
113
- chrome_with_file_access_command = "\"/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome\" \"#{Dir.pwd}/tmpTestSupport/SpecRunner#{color_option}.html\" --allow-file-access-from-files"
114
- # This should give me back to the prompt - u can use & but a flag to send it to the background would be better.
115
- system(chrome_with_file_access_command)
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
@@ -1,3 +1,3 @@
1
1
  module LearnTest
2
- VERSION = '2.2.0'
2
+ VERSION = '2.2.1'
3
3
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler