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
- NGFkZDBhOTUzOGE2MjlhYzRjY2EzMWQzNDc4YTA1NjYzMzBjOWU2ZQ==
4
+ ODAwZjEwODY5NzgxYTIzNmEwZTYzYzdkNWQ4NGE5ZDY2NzJkYzhkNg==
5
5
  data.tar.gz: !binary |-
6
- NjE5ODllODY1NGRiMGJmNzFhN2NlMmRjMzNhZGI3MTY3YzhmOWI4OQ==
6
+ YjQ5MWRkNjdiYjIwMDQ0NzM0NTMxMWViMjkxOGVmYjMyYjVmM2ExYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDc4N2Y2OWJkNGZmOTY1M2I5MTdkMDM5OGFmNDQ2NzU1ZWVjMmUwMGFjNTlj
10
- YTU4ZmM1ODk0NDliZWIyMjE5NGUyNmEzZTU1Y2MwNjk4MDk5MjQ5NjgxNTJm
11
- N2YzYzZkNTdjMjAwZGUxODMyNmEzZTdhMmQ3ODdmYTNlZjgwNWI=
9
+ ZDU4Yjc1NTlkNmJjYWJmMTFkN2NhNWRiMjA1NGEwZmU3MTEwZjY4YjJjNDA1
10
+ ZTZiZGQwOWUxZjNlZTFjYThjN2Q5MmZhNWYyNTEzYzViOWNmNTFlOWZkNGIy
11
+ YzlmNDI4YjQ5ZWRmNDAwZGE1YjhjYjk4NWUwYzI4M2ZjOTUzOWE=
12
12
  data.tar.gz: !binary |-
13
- MTE4YThmMDE0YTZjMTdiYmJkMzQ3NjkzZjFjZWQxOTZlYmI0OWNmMTk5NzEz
14
- ZjdlNWI4MzA5ZmZhYmFhNjNlOGFjMTYxMThiYjdhZmNiNjEwYjdmY2Q3YTJj
15
- Y2MyNjE4NzhmMzMwZDM3Mjg4ZjdmNDQ3ZmI1OWFmMWE0YWZkOTc=
13
+ MDVhYWU0NjcwMWQzYTY4YmNiOWUwYTU5YmY4NTRjY2VlMzIxZDM3MjQ2NTAz
14
+ ODY4Mzg2YzUxM2IzZjRiN2VmMjIzMjllMzdiMDNmZmNkYjQ2ZmZlMDVhZDQ2
15
+ NzEzYTBjYjA0ODBlMjY2NTAxZmZhMTVmOWJmNzljMmE4ZWI0NzU=
data/CHANGES CHANGED
@@ -307,4 +307,8 @@
307
307
 
308
308
  == Version 1.10.4
309
309
 
310
- * Update specs
310
+ * Update specs
311
+
312
+ == Version 1.10.5
313
+
314
+ * Bug fixes
@@ -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.entries("#{support_dir}/steps").each do |name|
137
- require "steps/#{File.basename(name)}" unless [".", ".."].include? name
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
 
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.10.4"
2
+ VERSION = "1.10.5"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -6,6 +6,6 @@ ENV['DATA_DIR'] = "spec/wikipedia/acceptance_data"
6
6
  AcceptanceConfig.instance.configure "spec", "wikipedia"
7
7
 
8
8
  RSpec.configure do |c|
9
- # c.add_formatter 'progress'
9
+ # c.add_formatter 'progress'
10
10
  c.add_formatter 'documentation'
11
11
  end
@@ -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
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-26 00:00:00.000000000 Z
11
+ date: 2015-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec