handy_feature_helpers 0.0.3 → 0.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3daaf8e50fa91db00540a12e9e782ef3e8ed10a5
|
4
|
+
data.tar.gz: eda3e0281f2b9d80b543ec554ae53bec80d1ab4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db176f7f5c052748751db28daff264cbd76ac29990f978b24029ebd179061367cb780fc6e3adb8a2a1f4dd743fa4872e9b547bb696ab9f7f620e51d28b21358
|
7
|
+
data.tar.gz: fed15b6bbd125402f1a577c00d36a736c8d8c509c2ec181c88e4f44e235c085614317faae37af8c3c4e4a452bc4037308965944c76c9431d003f0a804577cbc1
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'capybara', '~> 2.
|
21
|
+
spec.add_dependency 'capybara', '~> 2.1.0'
|
22
22
|
spec.add_dependency 'rspec'
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
end
|
@@ -55,6 +55,10 @@ module HandyFeatureHelpers
|
|
55
55
|
'.edit-link'
|
56
56
|
end
|
57
57
|
|
58
|
+
def js_edit_link
|
59
|
+
'.js-edit-link'
|
60
|
+
end
|
61
|
+
|
58
62
|
def show_link
|
59
63
|
'.show-link'
|
60
64
|
end
|
@@ -89,6 +93,10 @@ module HandyFeatureHelpers
|
|
89
93
|
find(selector).click
|
90
94
|
end
|
91
95
|
|
96
|
+
def click_text(text)
|
97
|
+
find('a',:text => text).click
|
98
|
+
end
|
99
|
+
|
92
100
|
def click_option(resource)
|
93
101
|
find("option[value='#{resource.id}']").click
|
94
102
|
end
|
@@ -106,7 +114,7 @@ module HandyFeatureHelpers
|
|
106
114
|
end
|
107
115
|
|
108
116
|
def table_has_no_content?(text)
|
109
|
-
within(table) {
|
117
|
+
within(table) { has_no_content?(text) }
|
110
118
|
end
|
111
119
|
|
112
120
|
def ensure_delete_is_working
|
@@ -136,6 +144,14 @@ module HandyFeatureHelpers
|
|
136
144
|
page.should have_content "can't be blank"
|
137
145
|
end
|
138
146
|
|
147
|
+
def count?(count)
|
148
|
+
within(count_div) { has_content? count }
|
149
|
+
end
|
150
|
+
|
151
|
+
def current_path?(path)
|
152
|
+
expect(current_path).to eq path
|
153
|
+
end
|
154
|
+
|
139
155
|
private
|
140
156
|
|
141
157
|
def plural(text)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handy_feature_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vassil Kalkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|