cs-bdd 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
  SHA1:
3
- metadata.gz: d2875a3961df23b83a153a8e7dfba33a9de05977
4
- data.tar.gz: 72838f4d189d390f3f16d3ebc55a00a771507c8b
3
+ metadata.gz: c75093ffe2bf4ae13702d257de216ab921eba9fd
4
+ data.tar.gz: 7530e6d6a895dd9d0d7ae5a21e9e4ecf51be39fb
5
5
  SHA512:
6
- metadata.gz: ba40751df0d1886c4355bacb3e3ffae1fcb284af45909b97f23bf2040a15d1f1cc48aa9ba594ff153109daad206f58458fa1bde6574fa0627836f29f296ca506
7
- data.tar.gz: 7990fe160d13effec743a506a8de0f4730d2aa6c0c89320751338b646462b838a50690e9c622a67784cd1d8c0c27f6b32ded49f8fb1b375e6e2ee283c4ae20c1
6
+ metadata.gz: 7987646f23fe6bf2fd9eac39e87afe05c50f334e0234d5fec842014126b80518dc00dfc2500ebaabcf6c3a61dcd6cf33eccdb17df4f28e8e1c351291575ae339
7
+ data.tar.gz: 0c1baa47ccf26ffae4c10cc178d624e3c8e1ef316d27ed8af3dcf1d09916b1b085d976d80c70b1e81ecdf0c89c7906dd9162622dc3e52d9ae453f47442c2bfcb
@@ -17,6 +17,8 @@ en:
17
17
  should_see_page: "I should see the page '(.*?)'"
18
18
  should_see_page_that_contains: "I should see a page that contains '(.*?)'"
19
19
  take_print: "take picture"
20
+ been_in_page: "I am at (?:page|screen) '(.*?)'"
21
+ move_to_page: "I went to (?:page|screen) '(.*?)'"
20
22
  directions:
21
23
  up: 'up'
22
24
  down: 'down'
@@ -16,7 +16,9 @@ pt:
16
16
  wait_progress_bar: "Eu (?:espero|esperei) até a barra de progresso sumir"
17
17
  should_see_page: "Eu deveria ver a página '(.*?)'"
18
18
  should_see_page_that_contains: "Eu deveria ver uma página que contem '(.*?)'"
19
- take_print: "faço um print"
19
+ take_print: "faço um print"
20
+ been_in_page: "que eu (?:estou|estava) na (?:página|tela)(?: de|) '(.*?)'"
21
+ move_to_page: "eu (?:devo|deveria) estar na (?:página|tela)(?: de|) '(.*?)'"
20
22
  directions:
21
23
  up: 'cima'
22
24
  down: 'baixo'
@@ -1,5 +1,5 @@
1
1
  module CS
2
2
  module BDD
3
- VERSION = "0.1.3"
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
@@ -42,11 +42,19 @@ export_path = File.join(config['export_path'], ARGV[1])
42
42
  # Creating the folder where the .app will be stored
43
43
  FileUtils.mkdir_p export_path
44
44
 
45
+ # Choosing the SDK for device or simulator
46
+ sdk = ''
47
+ if ARGV[1] == 'device'
48
+ sdk = 'iphoneos'
49
+ else
50
+ sdk = 'iphonesimulator'
51
+ end
52
+
45
53
  puts 'Building project'
46
54
 
47
55
  system <<eos
48
56
  xcodebuild -workspace "#{config['xcworkspace']}" \
49
- -scheme "#{config['scheme']}" -sdk "#{config["sdk_#{ARGV[1]}"]}" \
57
+ -scheme "#{config['scheme']}" -sdk "#{sdk}" \
50
58
  -configuration "#{config['configuration']}" clean build \
51
59
  CONFIGURATION_BUILD_DIR="#{export_path}"
52
60
  eos
@@ -1,15 +1,11 @@
1
1
  dev:
2
2
  xcworkspace: "Path_to_the_xcworkspace_folder"
3
3
  scheme: TargetName
4
- sdk_simulator: iphonesimulator8.1
5
- sdk_device: iphoneos8.1
6
4
  configuration: Debug
7
5
  export_path: "Path_to_export_app_folder"
8
6
 
9
7
  jenkins:
10
8
  xcworkspace: <%= ENV['WORKSPACE']%>/Project.xcworkspace
11
9
  scheme: TargetName
12
- sdk_simulator: iphonesimulator8.1
13
- sdk_device: iphoneos8.1
14
10
  configuration: Debug
15
11
  export_path: <%= ENV['WORKSPACE']%>/releases/normal
@@ -24,8 +24,8 @@ end
24
24
  ######### <%= I18n.translate( :then ).upcase %> #########
25
25
 
26
26
  <%= I18n.translate( :then ).capitalize %>(/^<%= I18n.translate "steps.wait_progress_bar" %>$/) do
27
- # wait_for_progress is a method of the base class, so doesn't matter what is the value
28
- # of the @page variable, because all screens will have this method
27
+ # wait_for_progress is a method of the base class, so doesn't matter what is
28
+ # the value of the @page variable, because all screens will have this method
29
29
  @page.wait_for_progress
30
30
  end
31
31
 
@@ -36,7 +36,10 @@ end
36
36
  <%= I18n.translate( :then ).capitalize %>(/^<%= I18n.translate "steps.should_see_page_that_contains" %>$/) do |page_text|
37
37
  @page.is_on_page? page_text
38
38
  end
39
+ <% unless I18n.config.default_locale == :en %>
39
40
 
40
41
  <%= I18n.translate( :then ).capitalize %>(/^<%= I18n.translate "steps.take_print" %>$/) do
41
42
  screenshot_embed
42
43
  end
44
+
45
+ <% end %>
@@ -1,15 +1,13 @@
1
1
  class <%= config[:name] %>Screen < <%= config[:platform] %>ScreenBase
2
-
3
2
  # <%= I18n.translate 'comments.trait' %>
4
- #trait(:trait) { "* <%= (config[:platform] == 'Android') ? 'id' : 'marked' %>:'#{layout_name}'" }
3
+ # trait(:trait) { "* <%= (config[:platform] == 'Android') ? 'id' : 'marked' %>:'#{layout_name}'" }
5
4
 
6
5
  # <%= I18n.translate 'comments.elements' %>
7
- #element(:layout_name) { 'insert_layout_identificator' }
8
- #element(:button) { 'insert_button_identificator' }
6
+ # element(:layout_name) { 'insert_layout_identificator' }
7
+ # element(:button) { 'insert_button_identificator' }
9
8
 
10
9
  # <%= I18n.translate 'comments.actions' %>
11
10
  # action(:touch_button) {
12
11
  # touch("* <%= (config[:platform] == 'Android') ? 'id' : 'marked' %>:'#{button}'")
13
12
  # }
14
-
15
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cs-bdd
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
  - Oscar Tanner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler