wildcard_finders 0.0.4 → 0.1.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/wildcard_finders/matchers.rb +2 -2
- data/spec/wildcard_finders/matchers_spec.rb +29 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d708a938e38d6afc942009e572c7a6a5b080ed5c
|
4
|
+
data.tar.gz: a335390461c39367f45b829d35f075f2dada5f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71dea0cda0d39a6fa00bdd9f9a722769e3ebe3537acf1ae6b55edc955de4e3156f7d110ab646589d2adb4c1fb4b230f16ec360c518cf19d071df8be34091c0d4
|
7
|
+
data.tar.gz: e0010ee431ac5359cef9c77cd6c0514d24bfc065be63332d96315cbcfdaa32e5b30b132a9e62fb8adb4f962a2fd90d0d24d2287a2a7bce424f12e125853b187b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
@@ -18,7 +18,7 @@ module WildcardFinders
|
|
18
18
|
|
19
19
|
__send__(wait_method) do
|
20
20
|
result = __send__(method, *args, &block)
|
21
|
-
result or
|
21
|
+
result or return(false)
|
22
22
|
end
|
23
23
|
|
24
24
|
true
|
@@ -29,7 +29,7 @@ module WildcardFinders
|
|
29
29
|
|
30
30
|
__send__(wait_method) do
|
31
31
|
result = __send__(method, *args, &block)
|
32
|
-
result and
|
32
|
+
result and return(false)
|
33
33
|
end
|
34
34
|
|
35
35
|
true
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe WildcardFinders::Matchers do
|
4
|
+
include WildcardFinders::Matchers
|
5
|
+
|
6
|
+
context ".has_anchor_like?" do
|
7
|
+
it "returns true when there is an anchor" do
|
8
|
+
visit "/a"
|
9
|
+
page.has_anchor_like?(href: /hoge/).should be_true
|
10
|
+
end
|
11
|
+
|
12
|
+
it "returns true when ther are no anchors" do
|
13
|
+
visit "/a"
|
14
|
+
page.has_anchor_like?(href: /not_exist/).should be_false
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
context ".has_no_anchor_like?" do
|
19
|
+
it "returns true when there is an anchor" do
|
20
|
+
visit "/a"
|
21
|
+
page.has_no_anchor_like?(href: /hoge/).should be_false
|
22
|
+
end
|
23
|
+
|
24
|
+
it "returns true when ther are no anchors" do
|
25
|
+
visit "/a"
|
26
|
+
page.has_no_anchor_like?(href: /not_exist/).should be_true
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wildcard_finders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- okitan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- spec/spec_helper.rb
|
162
162
|
- spec/test_app.rb
|
163
163
|
- spec/wildcard_finders/finders_spec.rb
|
164
|
+
- spec/wildcard_finders/matchers_spec.rb
|
164
165
|
- wildcard_finders.gemspec
|
165
166
|
homepage: https://github.com/okitan/wildcard_finders
|
166
167
|
licenses: []
|
@@ -189,3 +190,4 @@ test_files:
|
|
189
190
|
- spec/spec_helper.rb
|
190
191
|
- spec/test_app.rb
|
191
192
|
- spec/wildcard_finders/finders_spec.rb
|
193
|
+
- spec/wildcard_finders/matchers_spec.rb
|