testcentricity_web 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: 47950cb4c712070298ad6deb05d1b50ae5f18009
4
- data.tar.gz: 567501e936e2fcbac0a57e1c866cb921afc5d7b2
3
+ metadata.gz: acada2c571dec453cbec4de28d0607efc44e267e
4
+ data.tar.gz: 49a1f4ae2be03a57ed4d833b100c956fb5aaa493
5
5
  SHA512:
6
- metadata.gz: b13b00820983439f0bbe49be197f975d10ec163b8cfc72f27b4a0e4333fdb57697acd41276ec533036f4e8429d5dd420c9df7417db8201f223a9da7ebe7af7a5
7
- data.tar.gz: 0bdcf538a51a41cd76150c5b424f013cf06fa1548b5b8a91c2eba2eb07f927104e8fa37ebf33a30936ca305386c69f15784e9f42b3e1cedb1df3b5b23880a42e
6
+ metadata.gz: 9e6a07b4c065fce75e4cad743db595fef512d9fb34ff4e7bce6cc9ac18fd19266b871042bd43054787e0f06efc5f83ea219b5d357d1fd6a4fb2160113145372a
7
+ data.tar.gz: a8dd9f0535d3a02ce200de98a6bee4a56d465f3d294b7f0c1935503b1f990b44da05d4fc116094133f92ca4fdf9dfd51992ac360a595a3e3dc8fb0c285f66e7c
@@ -45,9 +45,13 @@ module TestCentricity
45
45
 
46
46
  class ExcelDataSource < TestCentricity::DataSource
47
47
  def pick_excel_data_source(sheet, row_spec)
48
- environment = ENV['TEST_ENVIRONMENT']
49
- data_file = "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
50
- data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_spec)
48
+ if ENV['TEST_ENVIRONMENT']
49
+ environment = ENV['TEST_ENVIRONMENT']
50
+ data_file = "#{XL_PRIMARY_DATA_PATH}#{environment}_data.xls"
51
+ data_file = XL_PRIMARY_DATA_FILE unless ExcelData.rowspec_exists?(data_file, sheet, row_spec)
52
+ else
53
+ data_file = XL_PRIMARY_DATA_FILE
54
+ end
51
55
  data_file
52
56
  end
53
57
 
@@ -61,9 +61,9 @@ module TestCentricity
61
61
  #
62
62
  # @param element_hash [Hash] names of buttons (as a symbol) and CSS selectors or XPath expressions that uniquely identifies buttons
63
63
  # @example
64
- # buttons new_account_button: 'button#new-account',
65
- # save_button: 'button#save',
66
- # cancel_button: 'button#cancel'
64
+ # buttons new_account_button: 'button#new-account',
65
+ # save_button: 'button#save',
66
+ # cancel_button: 'button#cancel'
67
67
  #
68
68
  def self.buttons(element_hash)
69
69
  element_hash.each do |element_name, locator|
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-24 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler