acceptance_test 1.10.4 → 1.10.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODAwZjEwODY5NzgxYTIzNmEwZTYzYzdkNWQ4NGE5ZDY2NzJkYzhkNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjQ5MWRkNjdiYjIwMDQ0NzM0NTMxMWViMjkxOGVmYjMyYjVmM2ExYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDU4Yjc1NTlkNmJjYWJmMTFkN2NhNWRiMjA1NGEwZmU3MTEwZjY4YjJjNDA1
|
10
|
+
ZTZiZGQwOWUxZjNlZTFjYThjN2Q5MmZhNWYyNTEzYzViOWNmNTFlOWZkNGIy
|
11
|
+
YzlmNDI4YjQ5ZWRmNDAwZGE1YjhjYjk4NWUwYzI4M2ZjOTUzOWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDVhYWU0NjcwMWQzYTY4YmNiOWUwYTU5YmY4NTRjY2VlMzIxZDM3MjQ2NTAz
|
14
|
+
ODY4Mzg2YzUxM2IzZjRiN2VmMjIzMjllMzdiMDNmZmNkYjQ2ZmZlMDVhZDQ2
|
15
|
+
NzEzYTBjYjA0ODBlMjY2NTAxZmZhMTVmOWJmNzljMmE4ZWI0NzU=
|
data/CHANGES
CHANGED
@@ -60,6 +60,10 @@ class AcceptanceConfig
|
|
60
60
|
ENV['DATA_DIR'] ? detect_file(ENV['DATA_DIR'], name) : detect_file("acceptance_data", name)
|
61
61
|
end
|
62
62
|
|
63
|
+
def acceptance_results_file name="#{app_name}.#{format}"
|
64
|
+
ENV['RESULTS_DIR'] ? detect_file(ENV['RESULTS_DIR'], name) : detect_file("acceptance_results", name)
|
65
|
+
end
|
66
|
+
|
63
67
|
def screenshots_dir
|
64
68
|
AcceptanceTest.instance.config[:screenshots_dir]
|
65
69
|
end
|
@@ -72,6 +76,10 @@ class AcceptanceConfig
|
|
72
76
|
AcceptanceTest.instance.config[:upload_dev_dir]
|
73
77
|
end
|
74
78
|
|
79
|
+
def acceptance_results_dir
|
80
|
+
AcceptanceTest.instance.config[:results_dir]
|
81
|
+
end
|
82
|
+
|
75
83
|
private
|
76
84
|
|
77
85
|
def configure_turnip
|
@@ -133,8 +141,10 @@ class AcceptanceConfig
|
|
133
141
|
$: << File.expand_path("#{basedir}/support")
|
134
142
|
$: << File.expand_path(support_dir)
|
135
143
|
|
136
|
-
Dir.
|
137
|
-
|
144
|
+
Dir.glob("#{support_dir}/**/steps/*_steps.rb").each do |name|
|
145
|
+
ext = File.extname(name)
|
146
|
+
|
147
|
+
require name[support_dir.length+1..name.length-ext.length-1]
|
138
148
|
end
|
139
149
|
end
|
140
150
|
|
data/spec/spec_helper.rb
CHANGED
@@ -4,10 +4,18 @@ require 'wikipedia_pages'
|
|
4
4
|
steps_for :search_with_pages do
|
5
5
|
include CommonSteps
|
6
6
|
|
7
|
+
attr_reader :page_set
|
8
|
+
|
7
9
|
def initialize *params
|
8
10
|
puts Capybara.current_driver
|
9
11
|
|
12
|
+
@page_set = WikipediaPages.new(self)
|
13
|
+
|
10
14
|
super
|
11
15
|
end
|
12
16
|
|
17
|
+
step :visit_home_page, "I am on wikipedia.com"
|
18
|
+
|
19
|
+
step :enter_word, "I enter word :word"
|
20
|
+
|
13
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acceptance_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02
|
11
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|