RubyApp 0.6.70 → 0.6.71

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.
Files changed (44) hide show
  1. data/.gitignore +1 -0
  2. data/Rakefile +7 -2
  3. data/lib/ruby_app/configuration.ru +2 -2
  4. data/lib/ruby_app/element.rb +3 -3
  5. data/lib/ruby_app/elements/mobile/default/default_page.css.haml +7 -0
  6. data/lib/ruby_app/elements/mobile/default/default_page.html.haml +2 -0
  7. data/lib/ruby_app/elements/mobile/default/features/authentications/default_page.html.haml +2 -0
  8. data/lib/ruby_app/elements/mobile/default/features/authentications/default_page.rb +6 -0
  9. data/lib/ruby_app/elements/mobile/default/features/language_page.html.haml +5 -0
  10. data/lib/ruby_app/elements/mobile/documents/authentication/null/authentication_document.rb +38 -0
  11. data/lib/ruby_app/rack/duration.rb +10 -2
  12. data/lib/ruby_app/rack/memory.rb +10 -2
  13. data/lib/ruby_app/scripts/common/features.rb +1 -0
  14. data/lib/ruby_app/scripts/common/information.rb +4 -0
  15. data/lib/ruby_app/scripts/default.rb +10 -0
  16. data/lib/ruby_app/scripts/{elements → features}/authentications/facebook.rb +0 -0
  17. data/lib/ruby_app/scripts/features/authentications/null.rb +9 -0
  18. data/lib/ruby_app/scripts/{elements → features}/authentications/o_auth/git_hub.rb +0 -0
  19. data/lib/ruby_app/scripts/{elements → features}/authentications/open_id/google.rb +0 -0
  20. data/lib/ruby_app/scripts/{elements → features}/authentications/open_id/my_open_id.rb +0 -0
  21. data/lib/ruby_app/scripts/{elements → features}/authentications/open_id/yahoo.rb +0 -0
  22. data/lib/ruby_app/scripts/{elements → features}/buttons.rb +0 -0
  23. data/lib/ruby_app/scripts/features/calendars/month.rb +16 -0
  24. data/lib/ruby_app/scripts/{elements → features}/dialogs.rb +4 -20
  25. data/lib/ruby_app/scripts/features/inputs.rb +52 -0
  26. data/lib/ruby_app/scripts/{elements → features}/lists.rb +4 -1
  27. data/lib/ruby_app/scripts/{elements → features}/message.rb +0 -0
  28. data/lib/ruby_app/scripts/{elements → features}/navigation/navigation_list.rb +0 -0
  29. data/lib/ruby_app/scripts/{elements → features}/swipe.rb +0 -0
  30. data/lib/ruby_app/scripts/{elements → features}/trigger.rb +0 -0
  31. data/lib/ruby_app/scripts/information.rb +5 -0
  32. data/lib/ruby_app/scripts/information/configuration.rb +8 -0
  33. data/lib/ruby_app/scripts/information/cookies.rb +8 -0
  34. data/lib/ruby_app/scripts/information/environment.rb +8 -0
  35. data/lib/ruby_app/scripts/information/sessions.rb +23 -0
  36. data/lib/ruby_app/scripts/{elements/language.rb → language.rb} +0 -0
  37. data/lib/ruby_app/scripts/standard_logon.rb +5 -5
  38. data/lib/ruby_app/scripts/standard_no_logon.rb +17 -11
  39. data/lib/ruby_app/templates/application/configuration.ru +2 -2
  40. data/lib/ruby_app/version.rb +1 -1
  41. data/ruby_app.gemspec +1 -0
  42. metadata +41 -19
  43. data/lib/ruby_app/scripts/elements/calendars/month.rb +0 -39
  44. data/lib/ruby_app/scripts/elements/inputs.rb +0 -89
data/.gitignore CHANGED
@@ -2,6 +2,7 @@
2
2
  .DS_Store
3
3
  .idea
4
4
  .sass-cache
5
+ coverage
5
6
  process
6
7
  sandbox
7
8
  lib/ruby_app/elements/mobile/documents/authentication/open_id/associations
data/Rakefile CHANGED
@@ -37,12 +37,17 @@ namespace :ruby_app do
37
37
 
38
38
  desc 'Create console'
39
39
  task :console do |task|
40
- system('cd ./lib/ruby_app && clear && bundle exec ../../bin/ruby_app console')
40
+ system('cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app console')
41
41
  end
42
42
 
43
43
  desc 'Run'
44
44
  task :run => ['ruby_app:cache:destroy'] do |task|
45
- system('cd ./lib/ruby_app && clear && bundle exec ../../bin/ruby_app run')
45
+ system('cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app run')
46
+ end
47
+
48
+ desc 'Run with coverage'
49
+ task :run_with_coverage => ['ruby_app:cache:destroy'] do |task|
50
+ system("cd ./lib/ruby_app; clear; bundle exec rcov --output ../../coverage --sort coverage --threshold 100 --exclude /.rvm ../../bin/ruby_app -- run; open ../../coverage/index.html")
46
51
  end
47
52
 
48
53
  end
@@ -16,8 +16,8 @@ RubyApp::Application.root = '/'
16
16
  use Rack::ShowExceptions
17
17
  use Rack::Reloader
18
18
 
19
- #use RubyApp::Rack::Duration
20
- #use RubyApp::Rack::Memory
19
+ use RubyApp::Rack::Duration, :interval => 5
20
+ use RubyApp::Rack::Memory, :interval => 100
21
21
 
22
22
  use RubyApp::Rack::Application, :configuration_paths => [File.join(RubyApp::ROOT, %w[configuration.yml])]
23
23
  # Placeholder for template application configuration path
@@ -103,7 +103,7 @@ module RubyApp
103
103
  end
104
104
 
105
105
  def quit!
106
- self.go('/quit')
106
+ self.go("#{RubyApp::Application.root_or_nil}/quit")
107
107
  end
108
108
 
109
109
  def go(url)
@@ -200,12 +200,12 @@ module RubyApp
200
200
  self.execute("RubyApp.assertNotExists(#{_selector.to_json});")
201
201
  end
202
202
 
203
- def assert_exists_selector_value(selector)
203
+ def assert_exists_selector_value(selector, value = nil)
204
204
  _selector = ".ui-page-active #{selector}"
205
205
  self.execute("RubyApp.assertExistsValue(#{_selector.to_json}, #{value.to_json});")
206
206
  end
207
207
 
208
- def assert_not_exists_selector_value(selector)
208
+ def assert_not_exists_selector_value(selector, value = nil)
209
209
  _selector = ".ui-page-active #{selector}"
210
210
  self.execute("RubyApp.assertNotExistsValue(#{_selector.to_json}, #{value.to_json});")
211
211
  end
@@ -1,3 +1,10 @@
1
+ :sass
2
+ /* #{__FILE__}
3
+ div.content
4
+ font-weight: normal
5
+ text-align: center
6
+ div.content_bold
7
+ font-weight: bold
1
8
  = RubyApp::Elements::Mobile::Default::Features::DefaultPage.render(:css)
2
9
  = RubyApp::Elements::Mobile::Navigation::PageButton.render(:css)
3
10
  = RubyApp::Elements::Mobile::Navigation::NavigationButton.render(:css)
@@ -5,6 +5,8 @@
5
5
  %h1
6
6
  RubyApp
7
7
  %div{'data-role' => 'content'}
8
+ %div.content
9
+ Nullam in mi mi, ac aliquet orci. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean vestibulum, est at rhoncus scelerisque, orci odio posuere justo, ac scelerisque nunc arcu tincidunt neque. Sed viverra vehicula ornare.
8
10
  %div{'data-role' => 'controlgroup'}
9
11
  = @features_link.render(:html) do |element|
10
12
  - element.content_for(:html, :link, 'Features')
@@ -22,3 +22,5 @@
22
22
  - element.content_for(:html, :link, 'myOpenID')
23
23
  = @yahoo_authentication_link.render(:html) do |element|
24
24
  - element.content_for(:html, :link, 'Yahoo!')
25
+ = @null_authentication_link.render(:html) do |element|
26
+ - element.content_for(:html, :link, 'Null')
@@ -12,6 +12,7 @@ module RubyApp
12
12
  require 'ruby_app'
13
13
  require 'ruby_app/elements/mobile/button'
14
14
  require 'ruby_app/elements/mobile/documents/authentication/facebook/email_authentication_document'
15
+ require 'ruby_app/elements/mobile/documents/authentication/null/authentication_document'
15
16
  require 'ruby_app/elements/mobile/documents/authentication/o_auth/git_hub_authentication_document'
16
17
  require 'ruby_app/elements/mobile/documents/authentication/open_id/google_authentication_document'
17
18
  require 'ruby_app/elements/mobile/documents/authentication/open_id/my_open_id_authentication_document'
@@ -53,6 +54,11 @@ module RubyApp
53
54
  RubyApp::Elements::Mobile::Documents::Authentication::OpenId::YahooAuthenticationDocument.new.show(event)
54
55
  end
55
56
 
57
+ @null_authentication_link = RubyApp::Elements::Mobile::Button.new
58
+ @null_authentication_link.clicked do |element, event|
59
+ RubyApp::Elements::Mobile::Documents::Authentication::Null::AuthenticationDocument.new.show(event)
60
+ end
61
+
56
62
  end
57
63
 
58
64
  end
@@ -7,3 +7,8 @@
7
7
  Language
8
8
  %div{'data-role' => 'content'}
9
9
  = RubyApp::Elements::Mobile::Default::Features::LanguagePage.translate.content
10
+ %br
11
+ %br
12
+ %code
13
+ Date.today = 
14
+ = RubyApp::Elements::Mobile::Default::Features::LanguagePage.localize(Date.today, :human)
@@ -0,0 +1,38 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ module RubyApp
5
+
6
+ module Elements
7
+
8
+ module Mobile
9
+
10
+ module Documents
11
+
12
+ module Authentication
13
+
14
+ module Null
15
+ require 'ruby_app'
16
+ require 'ruby_app/elements/mobile/documents/authentication/authentication_document'
17
+
18
+ class AuthenticationDocument < RubyApp::Elements::Mobile::Documents::Authentication::AuthenticationDocument
19
+
20
+ template_path(:all, File.dirname(__FILE__))
21
+
22
+ def initialize
23
+ super
24
+ end
25
+
26
+ end
27
+
28
+ end
29
+
30
+ end
31
+
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+
38
+ end
@@ -5,12 +5,20 @@ module RubyApp
5
5
 
6
6
  class Duration
7
7
 
8
- def initialize(application)
8
+ def initialize(application, options = {})
9
9
  @application = application
10
+ @options = {:interval => 5}.merge(options)
11
+ @count = 0
10
12
  end
11
13
 
12
14
  def call(environment)
13
- RubyApp::Log.duration(RubyApp::Log::DEBUG, RubyApp::Log.prefix(self, __method__)) do
15
+ if @count.modulo(@options[:interval]) == 0
16
+ @count = 1
17
+ RubyApp::Log.duration(RubyApp::Log::INFO, 'DURATION ') do
18
+ return @application.call(environment)
19
+ end
20
+ else
21
+ @count += 1
14
22
  return @application.call(environment)
15
23
  end
16
24
  end
@@ -5,12 +5,20 @@ module RubyApp
5
5
 
6
6
  class Memory
7
7
 
8
- def initialize(application)
8
+ def initialize(application, options = {})
9
9
  @application = application
10
+ @options = {:interval => 5}.merge(options)
11
+ @count = 0
10
12
  end
11
13
 
12
14
  def call(environment)
13
- RubyApp::Log.memory(RubyApp::Log::DEBUG, RubyApp::Log.prefix(self, __method__)) do
15
+ if @count.modulo(@options[:interval]) == 0
16
+ @count = 1
17
+ RubyApp::Log.memory(RubyApp::Log::DEBUG, 'MEMORY ') do
18
+ return @application.call(environment)
19
+ end
20
+ else
21
+ @count += 1
14
22
  return @application.call(environment)
15
23
  end
16
24
  end
@@ -1,4 +1,5 @@
1
1
  add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Features') }
2
2
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Features') }
3
3
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Features') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_text('Null') }
4
5
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.execute {} }
@@ -0,0 +1,4 @@
1
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Information') }
2
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Information') }
3
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Information') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.execute {} }
@@ -1,3 +1,13 @@
1
1
  add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Features') }
2
2
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Information') }
3
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Scripts') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_link('Null') }
3
5
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.execute {} }
6
+
7
+ add_step! (RubyApp::Element::Event) { |event| event.refresh_browser }
8
+ add_step! (RubyApp::Elements::Mobile::Page::LoadedEvent) { |event| event.update_style('div.content', 'color', 'blue')
9
+ event.add_class('div.content', 'content_bold')
10
+ event.remove_class('div.content', 'content_bold')
11
+ event.set_cookie('_version', RubyApp::VERSION)
12
+ event.log("RubyApp #{RubyApp::VERSION}")
13
+ event.execute {} }
@@ -0,0 +1,9 @@
1
+ load_script! 'common/features/authentications'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Null') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Null') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::LoadedEvent) { |event| event.assert_exists_link('Close') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Close') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::LoadedEvent) { |event| event.click_link('Back') }
8
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
9
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,16 @@
1
+ load_script! 'common/features'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Calendars') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Calendars') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Month') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link(Date.today.day == 15 ? 14 : 15) }
8
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link(Date.today.day == 15 ? 14 : 15) }
9
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You selected day #{Date.today.day == 15 ? 14 : 15}.") }
10
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
11
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
12
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text(Date.today.day == 15 ? 14 : 15) }
13
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
14
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
15
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
16
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -1,24 +1,19 @@
1
1
  load_script! 'common/features'
2
2
 
3
- add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Dialogs') }
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Dialogs') }
4
4
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Dialogs') }
5
5
 
6
6
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Acknowledgement') }
7
7
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Acknowledgement') }
8
-
9
8
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Acknowledge this.') }
10
9
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
11
10
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
12
11
 
13
- add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Acknowledgement') }
14
- add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Confirmation') }
12
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Confirmation') }
15
13
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Confirmation') }
16
-
17
14
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Do you confirm this?') }
18
15
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Yes') }
19
- add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('No') }
20
16
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Yes') }
21
-
22
17
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
23
18
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You responded true.') }
24
19
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
@@ -26,29 +21,23 @@ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_li
26
21
 
27
22
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Confirmation') }
28
23
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Confirmation') }
29
-
30
24
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Do you confirm this?') }
31
25
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('No') }
32
-
33
26
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
34
27
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You responded false.') }
35
28
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
36
29
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
37
30
 
38
- add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Confirmation') }
39
- add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Exception') }
31
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Exception') }
40
32
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Exception') }
41
-
42
33
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('This is an exception.') }
43
34
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
44
35
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
45
36
 
46
37
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }
47
38
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Month') }
48
-
49
39
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link(Date.today.day == 15 ? 14 : 15) }
50
40
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link(Date.today.day == 15 ? 14 : 15) }
51
-
52
41
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
53
42
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You responded day #{Date.today.day == 15 ? 14 : 15}.") }
54
43
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
@@ -56,18 +45,13 @@ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_li
56
45
 
57
46
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }
58
47
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Month') }
59
-
60
48
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Today') }
61
49
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Today') }
62
-
63
50
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
64
51
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You responded day #{Date.today.day}.") }
65
52
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
66
53
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
67
54
 
68
- add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }
69
- add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
70
-
71
55
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
72
-
56
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
73
57
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,52 @@
1
+ load_script! 'common/features'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Inputs') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Inputs') }
5
+
6
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Simple Input') }
7
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_input('Null') }
8
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Simple Input', 'value') }
9
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input value.') }
10
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
11
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
12
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Simple Input', 'value') }
13
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_input('Simple Input', 'null') }
14
+
15
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_input('Duration Input') }
16
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Duration Input', '2h 3m') }
17
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input 7380.') }
18
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
19
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
20
+
21
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Email Input') }
22
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Email Input', 'value') }
23
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input value.') }
24
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
25
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
26
+
27
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Date Input') }
28
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Date Input', '1/1/1970') }
29
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input 1/1/1970.') }
30
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
31
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
32
+
33
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Multiline Input') }
34
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Multiline Input', 'value') }
35
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input value.') }
36
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
37
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
38
+
39
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Toggle Input', 'false') }
40
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Toggle Input', 'true') }
41
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input true.') }
42
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
43
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
44
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_input('Toggle Input', 'true') }
45
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_input('Toggle Input', 'false') }
46
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input false.') }
47
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
48
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
49
+
50
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
51
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
52
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -4,12 +4,15 @@ add_step! (RubyApp::Element::Event) { |event| event.assert_e
4
4
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Lists') }
5
5
 
6
6
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_search('search') }
7
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_search('null') }
7
8
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.update_search('search', 'value') }
8
9
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You input value.') }
9
10
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
10
11
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('OK') }
12
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_search('search', 'value') }
13
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_not_exists_search('search', 'null') }
11
14
 
12
- add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Item 01') }
15
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Item 01') }
13
16
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_list_item('Item 01') }
14
17
  add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You clicked the item Item 01.') }
15
18
  add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
@@ -0,0 +1,5 @@
1
+ load_script! 'common/information'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_text("RubyApp #{RubyApp::VERSION}") }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,8 @@
1
+ load_script! 'common/information'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Configuration') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Configuration') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('ruby_app: (Hash)') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
8
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,8 @@
1
+ load_script! 'common/information'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Cookies') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Cookies') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('_session') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
8
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,8 @@
1
+ load_script! 'common/information'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Environment') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Environment') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('HTTP_HOST') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
8
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -0,0 +1,23 @@
1
+ load_script! 'common/information'
2
+
3
+ add_step! (RubyApp::Element::Event) { |event| event.assert_exists_link('Sessions') }
4
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Sessions') }
5
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('(current)') }
6
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('(current)') }
7
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Documents') }
8
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Documents') }
9
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('DefaultDocument') }
10
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('DefaultDocument') }
11
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Pages') }
12
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Pages') }
13
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('DefaultPage') }
14
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('DefaultPage') }
15
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('DefaultPage') }
16
+ add_step! (RubyApp::Element::AssertedEvent) { |event| event.click_link('Back') }
17
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
18
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
19
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
20
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
21
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
22
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') }
23
+ add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} }
@@ -1,5 +1,5 @@
1
- load_script! 'elements/authentications/facebook'
2
- load_script! 'elements/authentications/o_auth/git_hub'
3
- load_script! 'elements/authentications/open_id/google'
4
- load_script! 'elements/authentications/open_id/my_open_id'
5
- load_script! 'elements/authentications/open_id/yahoo'
1
+ load_script! 'features/authentications/facebook'
2
+ load_script! 'features/authentications/o_auth/git_hub'
3
+ load_script! 'features/authentications/open_id/google'
4
+ load_script! 'features/authentications/open_id/my_open_id'
5
+ load_script! 'features/authentications/open_id/yahoo'
@@ -1,12 +1,18 @@
1
- load_script! 'now'
2
1
  load_script! 'default'
3
- load_script! 'elements/buttons'
4
- load_script! 'elements/calendars/month'
5
- load_script! 'elements/dialogs'
6
- load_script! 'elements/inputs'
7
- load_script! 'elements/language'
8
- load_script! 'elements/lists'
9
- load_script! 'elements/message'
10
- load_script! 'elements/navigation/navigation_list'
11
- load_script! 'elements/swipe'
12
- load_script! 'elements/trigger'
2
+ load_script! 'features/authentications/null'
3
+ load_script! 'features/buttons'
4
+ load_script! 'features/calendars/month'
5
+ load_script! 'features/dialogs'
6
+ load_script! 'features/inputs'
7
+ load_script! 'features/lists'
8
+ load_script! 'features/message'
9
+ load_script! 'features/navigation/navigation_list'
10
+ load_script! 'features/swipe'
11
+ load_script! 'features/trigger'
12
+ load_script! 'information'
13
+ load_script! 'information/configuration'
14
+ load_script! 'information/cookies'
15
+ load_script! 'information/environment'
16
+ load_script! 'information/sessions'
17
+ load_script! 'language'
18
+ load_script! 'now'
@@ -16,8 +16,8 @@ RubyApp::Application.root = '/'
16
16
  use Rack::ShowExceptions
17
17
  use Rack::Reloader
18
18
 
19
- #use RubyApp::Rack::Duration
20
- #use RubyApp::Rack::Memory
19
+ #use RubyApp::Rack::Duration, :interval => 1000
20
+ #use RubyApp::Rack::Memory, :interval => 1000
21
21
 
22
22
  use RubyApp::Rack::Application, :configuration_paths => [ File.join(RubyApp::ROOT, %w[configuration.yml]),
23
23
  File.join(_APPLICATION_UPCODE_::ROOT, %w[configuration.yml])]
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.70"
2
+ VERSION = "0.6.71"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
data/ruby_app.gemspec CHANGED
@@ -37,4 +37,5 @@ Gem::Specification.new do |s|
37
37
  s.add_dependency 'yajl-ruby'
38
38
 
39
39
  s.add_development_dependency 'rake'
40
+ s.add_development_dependency 'rcov'
40
41
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 139
4
+ hash: 137
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 70
10
- version: 0.6.70
9
+ - 71
10
+ version: 0.6.71
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-24 00:00:00 Z
18
+ date: 2013-02-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -299,6 +299,20 @@ dependencies:
299
299
  type: :development
300
300
  name: rake
301
301
  requirement: *id020
302
+ - !ruby/object:Gem::Dependency
303
+ version_requirements: &id021 !ruby/object:Gem::Requirement
304
+ none: false
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ hash: 3
309
+ segments:
310
+ - 0
311
+ version: "0"
312
+ prerelease: false
313
+ type: :development
314
+ name: rcov
315
+ requirement: *id021
302
316
  description: A mobile web application framework in Ruby
303
317
  email:
304
318
  - frank.ficnar@gmail.com
@@ -430,6 +444,7 @@ files:
430
444
  - lib/ruby_app/elements/mobile/documents/authentication/authentication_page.rb
431
445
  - lib/ruby_app/elements/mobile/documents/authentication/facebook/authentication_document.rb
432
446
  - lib/ruby_app/elements/mobile/documents/authentication/facebook/email_authentication_document.rb
447
+ - lib/ruby_app/elements/mobile/documents/authentication/null/authentication_document.rb
433
448
  - lib/ruby_app/elements/mobile/documents/authentication/o_auth/authentication_document.rb
434
449
  - lib/ruby_app/elements/mobile/documents/authentication/o_auth/email_authentication_document.rb
435
450
  - lib/ruby_app/elements/mobile/documents/authentication/o_auth/git_hub_authentication_document.rb
@@ -1444,23 +1459,30 @@ files:
1444
1459
  - lib/ruby_app/response.rb
1445
1460
  - lib/ruby_app/scripts/common/features.rb
1446
1461
  - lib/ruby_app/scripts/common/features/authentications.rb
1462
+ - lib/ruby_app/scripts/common/information.rb
1447
1463
  - lib/ruby_app/scripts/common/reset.rb
1448
1464
  - lib/ruby_app/scripts/default.rb
1449
- - lib/ruby_app/scripts/elements/authentications/facebook.rb
1450
- - lib/ruby_app/scripts/elements/authentications/o_auth/git_hub.rb
1451
- - lib/ruby_app/scripts/elements/authentications/open_id/google.rb
1452
- - lib/ruby_app/scripts/elements/authentications/open_id/my_open_id.rb
1453
- - lib/ruby_app/scripts/elements/authentications/open_id/yahoo.rb
1454
- - lib/ruby_app/scripts/elements/buttons.rb
1455
- - lib/ruby_app/scripts/elements/calendars/month.rb
1456
- - lib/ruby_app/scripts/elements/dialogs.rb
1457
- - lib/ruby_app/scripts/elements/inputs.rb
1458
- - lib/ruby_app/scripts/elements/language.rb
1459
- - lib/ruby_app/scripts/elements/lists.rb
1460
- - lib/ruby_app/scripts/elements/message.rb
1461
- - lib/ruby_app/scripts/elements/navigation/navigation_list.rb
1462
- - lib/ruby_app/scripts/elements/swipe.rb
1463
- - lib/ruby_app/scripts/elements/trigger.rb
1465
+ - lib/ruby_app/scripts/features/authentications/facebook.rb
1466
+ - lib/ruby_app/scripts/features/authentications/null.rb
1467
+ - lib/ruby_app/scripts/features/authentications/o_auth/git_hub.rb
1468
+ - lib/ruby_app/scripts/features/authentications/open_id/google.rb
1469
+ - lib/ruby_app/scripts/features/authentications/open_id/my_open_id.rb
1470
+ - lib/ruby_app/scripts/features/authentications/open_id/yahoo.rb
1471
+ - lib/ruby_app/scripts/features/buttons.rb
1472
+ - lib/ruby_app/scripts/features/calendars/month.rb
1473
+ - lib/ruby_app/scripts/features/dialogs.rb
1474
+ - lib/ruby_app/scripts/features/inputs.rb
1475
+ - lib/ruby_app/scripts/features/lists.rb
1476
+ - lib/ruby_app/scripts/features/message.rb
1477
+ - lib/ruby_app/scripts/features/navigation/navigation_list.rb
1478
+ - lib/ruby_app/scripts/features/swipe.rb
1479
+ - lib/ruby_app/scripts/features/trigger.rb
1480
+ - lib/ruby_app/scripts/information.rb
1481
+ - lib/ruby_app/scripts/information/configuration.rb
1482
+ - lib/ruby_app/scripts/information/cookies.rb
1483
+ - lib/ruby_app/scripts/information/environment.rb
1484
+ - lib/ruby_app/scripts/information/sessions.rb
1485
+ - lib/ruby_app/scripts/language.rb
1464
1486
  - lib/ruby_app/scripts/now.rb
1465
1487
  - lib/ruby_app/scripts/phantom/phantom.js
1466
1488
  - lib/ruby_app/scripts/phantom/standard_no_logon.rb
@@ -1,39 +0,0 @@
1
- load_script! 'common/features'
2
-
3
- add_step! RubyApp::Element::Event do |event|
4
- event.assert_exists_link('Calendars')
5
- event.click_link('Calendars')
6
- end
7
-
8
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
9
- event.assert_exists_link('Month')
10
- event.click_link('Month')
11
- end
12
-
13
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
14
- event.assert_exists_link(Date.today.day == 15 ? 14 : 15)
15
- event.click_link(Date.today.day == 15 ? 14 : 15)
16
- end
17
-
18
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
19
- event.assert_exists_text("You selected day #{Date.today.day == 15 ? 14 : 15}.")
20
- event.assert_exists_link('OK')
21
- event.click_link('OK')
22
- end
23
-
24
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
25
- event.assert_exists_text(Date.today.day == 15 ? 14 : 15)
26
- event.click_link('Back')
27
- end
28
-
29
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
30
- event.click_link('Back')
31
- end
32
-
33
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
34
- event.click_link('Back')
35
- end
36
-
37
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
38
- event.execute {}
39
- end
@@ -1,89 +0,0 @@
1
- load_script! 'common/features'
2
-
3
- add_step! RubyApp::Element::Event do |event|
4
- event.assert_exists_link('Inputs')
5
- event.click_link('Inputs')
6
- end
7
-
8
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
9
- event.assert_exists_input('Simple Input')
10
- event.update_input('Simple Input', 'value')
11
- end
12
-
13
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
14
- event.assert_exists_text('You input value.')
15
- event.assert_exists_link('OK')
16
- event.click_link('OK')
17
- end
18
-
19
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
20
- event.assert_exists_input('Simple Input')
21
- event.assert_exists_input('Duration Input')
22
- event.update_input('Duration Input', '2h 3m')
23
- end
24
-
25
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
26
- event.assert_exists_text('You input 7380.')
27
- event.assert_exists_link('OK')
28
- event.click_link('OK')
29
- end
30
-
31
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
32
- event.assert_exists_input('Duration Input', '2 hrs 3 mins')
33
- event.assert_exists_input('Email Input')
34
- event.update_input('Email Input', 'value')
35
- end
36
-
37
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
38
- event.assert_exists_text('You input value.')
39
- event.assert_exists_link('OK')
40
- event.click_link('OK')
41
- end
42
-
43
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
44
- event.assert_exists_input('Email Input')
45
- event.assert_exists_input('Multiline Input')
46
- event.update_input('Multiline Input', 'value')
47
- end
48
-
49
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
50
- event.assert_exists_text('You input value.')
51
- event.assert_exists_link('OK')
52
- event.click_link('OK')
53
- end
54
-
55
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
56
- event.assert_exists_input('Multiline Input')
57
- event.assert_exists_input('Toggle Input', 'false')
58
- event.update_input('Toggle Input', 'true')
59
- end
60
-
61
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
62
- event.assert_exists_text('You input true.')
63
- event.assert_exists_link('OK')
64
- event.click_link('OK')
65
- end
66
-
67
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
68
- event.assert_exists_input('Toggle Input', 'true')
69
- event.update_input('Toggle Input', 'false')
70
- end
71
-
72
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
73
- event.assert_exists_text('You input false.')
74
- event.assert_exists_link('OK')
75
- event.click_link('OK')
76
- end
77
-
78
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
79
- event.assert_exists_input('Toggle Input')
80
- event.click_link('Back')
81
- end
82
-
83
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
84
- event.click_link('Back')
85
- end
86
-
87
- add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
88
- event.execute {}
89
- end