generic_test 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a26e58a5231c7f1444638e6dc4219c013ae3108515bc4c59d1d8effb2d158716
4
- data.tar.gz: 179bbb4eb223b5b968a65df26e0a1a06a3637014adf11fa34a3737f72b15d611
3
+ metadata.gz: 4a32c398102e166f203ca9deac04e804633743251570326ff0c3cf532ebd8320
4
+ data.tar.gz: 190570281ceb883cf04f41f4039da024e7105ac0db2293a64ed752f367771148
5
5
  SHA512:
6
- metadata.gz: 441b369d19b0121e8c3b60e416e9e502f501ffa2fb24b55dc3bd43138508ec25a035da396d40cd30039a619ad1d6a04bb6b5db28ff3228d2662cbc083ce62802
7
- data.tar.gz: 6ad1cd8861cfeb69266aba9b433bcbe8d92aecc5dcc754fdd0da19586db4de71adb47a961a7dfe1640c797718789ae4b52b8a05fe38bb825127ec124801a8358
6
+ metadata.gz: b60f785051b3c2985a6c44f0f41ae408a3ae18c1a58383ffd372926b7be25b44122e7b9d8c319a40eaaf5d260aba2d50883c8028a39a62453ee0911a7cc19d8f
7
+ data.tar.gz: ba4ca97e2fa95763544d8b3fa71851535c7cabab48feb384ee3da843ea3cf1d5cac6550a65995644073496ad07520d258977aee1e67387f20427025712f2042a
data/.gitlab-ci.yml CHANGED
@@ -16,6 +16,7 @@ docker_build:
16
16
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
17
17
  - docker pull $CI_REGISTRY_IMAGE:latest || true
18
18
  - docker build -t $CI_REGISTRY_IMAGE:latest .
19
+ - docker run -t $CI_REGISTRY_IMAGE:latest generic_test page samuel-garratt.gitlab.io/generic_test/about.html
19
20
  - docker push $CI_REGISTRY_IMAGE:latest
20
21
 
21
22
  test:
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.1.4
2
+ * Bug fix
3
+ * Fix path
4
+
1
5
  Version 0.1.3
2
6
  * Enhancement
3
7
  * Run gem outside of gem context
data/Rakefile CHANGED
@@ -17,6 +17,7 @@ task start_website: :logs do
17
17
  sleep 2 # Wait a little for virtual server to start up
18
18
  puts 'Running test site on pid ' + ENV['test_site_pid']
19
19
  ENV['PAGE_URL'] = 'http://127.0.0.1:4000'
20
+ ENV['PAGE_NUM'] = '1'
20
21
  end
21
22
 
22
23
  task default: :spec
data/exe/generic_test CHANGED
@@ -11,8 +11,9 @@ class Exe < Thor
11
11
  def page(page_url)
12
12
  ENV['PAGE_URL'] = page_url
13
13
  puts File.join(File.dirname(__FILE__))
14
- test_file_path = File.join(Dir.pwd, File.dirname(__FILE__), '..', 'spec', 'generic_test_spec.rb')
15
- puts 'no file' unless File.exist? test_file_path
14
+ test_file_path = File.join(File.dirname(__FILE__), '..', 'spec', 'generic_test_spec.rb')
15
+ raise "no file at #{test_file_path}" unless File.exist? test_file_path
16
+
16
17
  command = "rspec #{test_file_path} --format documentation --require generic_test/setup"
17
18
  puts command
18
19
  #require_relative '../lib/generic_test/setup'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GenericTest
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generic_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt