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: 9a3cbd7ca9ed2c8172f3b38a34e27267890e87b5
4
- data.tar.gz: 28ab9ebacdb288231ff882e51a99d51961884d86
3
+ metadata.gz: 3daaf8e50fa91db00540a12e9e782ef3e8ed10a5
4
+ data.tar.gz: eda3e0281f2b9d80b543ec554ae53bec80d1ab4f
5
5
  SHA512:
6
- metadata.gz: b636497fd9fec3d18ac25c372873ddf188e3e40f0b8fd1da8b273d584d1a453cb92d8b0de673db0217850011386c29446be34869e703b1ae2f26fdc9e8d6ec08
7
- data.tar.gz: 34a27775eaf803735bea652dc17c6817a3a43a6727c5346327a648951ec352587ee3775c9196b9dd45acabec5c50edfda9b6077c495eb4dea0ef113d2d04c0af
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.0.0'
21
+ spec.add_dependency 'capybara', '~> 2.1.0'
22
22
  spec.add_dependency 'rspec'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.3"
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) { has_content?(text) }
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)
@@ -1,3 +1,3 @@
1
1
  module HandyFeatureHelpers
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-08-19 00:00:00.000000000 Z
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.0.0
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.0.0
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: '1.3'
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: '1.3'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement