splinter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,7 @@ module Splinter
|
|
46
46
|
form = FormCompleter.new(base)
|
47
47
|
yield form
|
48
48
|
form.each_input { |method, *args| send(method, *args) }
|
49
|
-
|
49
|
+
find(:xpath, "//form[contains(@id,'#{base}')]//input[@type='submit']").click
|
50
50
|
end
|
51
51
|
|
52
52
|
# Selects hour and minute dropdowns for a time attribute.
|
@@ -128,11 +128,6 @@ module Splinter
|
|
128
128
|
|
129
129
|
find(:xpath, path, :message => message).text.sub(/_\di$/, '')
|
130
130
|
end
|
131
|
-
|
132
|
-
def submit_form
|
133
|
-
find("form input[type='submit']").click
|
134
|
-
end
|
135
|
-
|
136
131
|
end
|
137
132
|
end
|
138
133
|
end
|
data/lib/splinter/version.rb
CHANGED
@@ -70,8 +70,8 @@ describe Splinter, :type => :request do
|
|
70
70
|
find_selected_option("#{prefix}_1i").should == time.year.to_s
|
71
71
|
find_selected_option("#{prefix}_2i").should == time.month.to_s
|
72
72
|
find_selected_option("#{prefix}_3i").should == time.day.to_s
|
73
|
-
find_selected_option("#{prefix}_4i").should == time.hour.to_s
|
74
|
-
find_selected_option("#{prefix}_5i").should == time.min.to_s
|
73
|
+
find_selected_option("#{prefix}_4i").should == "%02d" % time.hour.to_s
|
74
|
+
find_selected_option("#{prefix}_5i").should == "%02d" % time.min.to_s
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
@@ -79,8 +79,8 @@ describe Splinter, :type => :request do
|
|
79
79
|
it "selects time dropdowns by #{prefix_key.inspect}" do
|
80
80
|
select_time time, prefix_key => prefix_val
|
81
81
|
|
82
|
-
find_selected_option("#{prefix}_4i").should == time.hour.to_s
|
83
|
-
find_selected_option("#{prefix}_5i").should == time.min.to_s
|
82
|
+
find_selected_option("#{prefix}_4i").should == "%02d" % time.hour.to_s
|
83
|
+
find_selected_option("#{prefix}_5i").should == "%02d" % time.min.to_s
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
metadata
CHANGED
@@ -1,160 +1,142 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: splinter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Joshua Priddle
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-05-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: capybara
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rspec
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
25
|
none: false
|
40
|
-
requirements:
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
41
35
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 47
|
44
|
-
segments:
|
45
|
-
- 2
|
46
|
-
- 8
|
47
|
-
- 0
|
36
|
+
- !ruby/object:Gem::Version
|
48
37
|
version: 2.8.0
|
49
38
|
type: :development
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: sinatra
|
53
39
|
prerelease: false
|
54
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
41
|
none: false
|
56
|
-
requirements:
|
42
|
+
requirements:
|
57
43
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.8.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: sinatra
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
64
53
|
version: 1.3.2
|
65
54
|
type: :development
|
66
|
-
version_requirements: *id003
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: rake
|
69
55
|
prerelease: false
|
70
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
57
|
none: false
|
72
|
-
requirements:
|
58
|
+
requirements:
|
73
59
|
- - ~>
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
81
69
|
version: 0.9.2.2
|
82
70
|
type: :development
|
83
|
-
version_requirements: *id004
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rack-test
|
86
71
|
prerelease: false
|
87
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.9.2.2
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rack-test
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
88
81
|
none: false
|
89
|
-
requirements:
|
82
|
+
requirements:
|
90
83
|
- - ~>
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
hash: 5
|
93
|
-
segments:
|
94
|
-
- 0
|
95
|
-
- 6
|
96
|
-
- 1
|
84
|
+
- !ruby/object:Gem::Version
|
97
85
|
version: 0.6.1
|
98
86
|
type: :development
|
99
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.6.1
|
100
94
|
description:
|
101
95
|
email: jpriddle@me.com
|
102
96
|
executables: []
|
103
|
-
|
104
97
|
extensions: []
|
105
|
-
|
106
|
-
extra_rdoc_files:
|
98
|
+
extra_rdoc_files:
|
107
99
|
- README.markdown
|
108
|
-
files:
|
100
|
+
files:
|
109
101
|
- Rakefile
|
110
102
|
- README.markdown
|
111
|
-
- lib/splinter/capybara/actions.rb
|
112
|
-
- lib/splinter/capybara/form_completer.rb
|
113
|
-
- lib/splinter/capybara.rb
|
114
|
-
- lib/splinter/perf/deferred_garbage_collection.rb
|
115
|
-
- lib/splinter/perf/shared_connection.rb
|
116
103
|
- lib/splinter/rspec/deferred_garbage_collection.rb
|
117
104
|
- lib/splinter/rspec/shared_connection.rb
|
105
|
+
- lib/splinter/perf/deferred_garbage_collection.rb
|
106
|
+
- lib/splinter/perf/shared_connection.rb
|
118
107
|
- lib/splinter/rspec.rb
|
119
108
|
- lib/splinter/version.rb
|
109
|
+
- lib/splinter/capybara/form_completer.rb
|
110
|
+
- lib/splinter/capybara/actions.rb
|
111
|
+
- lib/splinter/capybara.rb
|
120
112
|
- lib/splinter.rb
|
121
|
-
- spec/spec_helper.rb
|
122
113
|
- spec/splinter/capybara/actions_spec.rb
|
123
|
-
- spec/
|
114
|
+
- spec/spec_helper.rb
|
124
115
|
- spec/test_app/views/index.erb
|
125
|
-
|
116
|
+
- spec/test_app/server.rb
|
126
117
|
homepage: https://github.com/site5/splinter
|
127
118
|
licenses: []
|
128
|
-
|
129
119
|
post_install_message:
|
130
|
-
rdoc_options:
|
120
|
+
rdoc_options:
|
131
121
|
- --charset=UTF-8
|
132
|
-
require_paths:
|
122
|
+
require_paths:
|
133
123
|
- lib
|
134
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
125
|
none: false
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
|
140
|
-
|
141
|
-
- 0
|
142
|
-
version: "0"
|
143
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ! '>='
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
130
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
131
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
|
149
|
-
segments:
|
150
|
-
- 0
|
151
|
-
version: "0"
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
152
136
|
requirements: []
|
153
|
-
|
154
137
|
rubyforge_project:
|
155
|
-
rubygems_version: 1.
|
138
|
+
rubygems_version: 1.8.23
|
156
139
|
signing_key:
|
157
140
|
specification_version: 3
|
158
141
|
summary: Splinter is a Capybara Ninja
|
159
142
|
test_files: []
|
160
|
-
|