capybara-page-object 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capybara-page-object.gemspec +1 -1
- data/lib/base.rb +7 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/base.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module CapybaraPageObject
|
2
2
|
class Base
|
3
3
|
include Extractors::Common
|
4
|
+
include Extractors::PageLevel
|
4
5
|
|
5
6
|
attr_accessor :source
|
6
7
|
|
@@ -13,8 +14,13 @@ module CapybaraPageObject
|
|
13
14
|
raise PageObjectMissingPath, "You need to override this"
|
14
15
|
end
|
15
16
|
|
17
|
+
def prefix
|
18
|
+
''
|
19
|
+
end
|
20
|
+
|
16
21
|
def visit
|
17
|
-
source.visit path
|
22
|
+
source.visit prefix + path
|
23
|
+
self
|
18
24
|
end
|
19
25
|
end
|
20
26
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-page-object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Waite
|