auto_test 0.1.9 → 0.1.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,14 @@ module AutoTest
41
41
  @login = path
42
42
  end
43
43
 
44
-
44
+ def set_login_button(text)
45
+ @login_button = text
46
+ end
47
+
48
+ def get_login_button
49
+ @login_button
50
+ end
51
+
45
52
  def init_login_data
46
53
  @data = []
47
54
  end
@@ -163,7 +170,7 @@ module AutoTest
163
170
  session.fill_in field[1], :with => get_user_data[i]
164
171
  end
165
172
  end
166
- session.click_button Page.all_submits(session).first.value
173
+ session.click_button get_login_button
167
174
 
168
175
  Page.check_for_error_code(session)
169
176
  rescue (ActiveRecord::RecordNotFound)
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.9.5"
3
3
  end
data/lib/auto_test.rb CHANGED
@@ -48,6 +48,10 @@ module AutoTest
48
48
  Dsl.links_to_exclude(*links)
49
49
  end
50
50
 
51
+ def set_login_button(text)
52
+ Dsl.set_login_button(text)
53
+ end
54
+
51
55
  def set_max_depth(value)
52
56
  Dsl.set_max_depth(value)
53
57
  end
data/lib/dsl.rb CHANGED
@@ -60,6 +60,10 @@ module AutoTest
60
60
  Test.set_no_auth
61
61
  end
62
62
 
63
+ def set_login_button(text)
64
+ User.set_login_button(text)
65
+ end
66
+
63
67
  # set the login path
64
68
  def set_login_path(path)
65
69
  Authentication.set_login_path(path)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: auto_test
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.9
5
+ version: 0.1.9.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-10-10 00:00:00 Z
13
+ date: 2012-10-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faker