acceptance_test 1.0.1 → 1.0.2

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
- NjBjYWYxMjdiZTQ2MWNlMzBiMTdjNjI3YzBiY2JjNTUzZTYwNGU3NQ==
4
+ OWRhNDcyZmQ3OGFlZTg4OGRiZTE4ZGM0OGFkOWExZjQ1NzkxODAzMQ==
5
5
  data.tar.gz: !binary |-
6
- YzVkMmQ1ZGRhMTc2ODY0YTM3OTFmZDBkZGJjYTdhMjNjZjQ3NDFjYQ==
6
+ ZjA5YzdjNzUzOGIxM2FmYzFjZDI3ZDU5YWM0ZGFhNTQ0NzRjYjY5NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mzk5M2JkYzM1YzZjMjYzNTZkMmZmMjFlYTIxMWZiMDQ4NTkwOTRjNGU3ZDNk
10
- ZTliMWRmY2E5MmZjM2NkYzA3YTgxY2NhNzliMDZjM2IxYmE4MjcyZmJkZWVl
11
- OTU2NDA5NzlhMWNlZTJhNTBiZjFhYmFmMzg1YzBmNzkzNzFkM2Y=
9
+ MzBiNGJmNWE3M2RmOGU3NjgwZDU5ODY0MTNhMjdlOGE5M2ZjZDU5NGY3MGMw
10
+ MTI5ZGRjMWE5MTZlOWViNzBkY2M4NzczZWQyYzdkMDRiOGUxODlhNTNkNmMx
11
+ MWZmNzU2OTA3ZjMxNDYwOTI2YmJjZmE5OWEzZGNiNzA0NTU1OWY=
12
12
  data.tar.gz: !binary |-
13
- MjY3YTcwZjAzNDY3MjEzMjVlMzg4OTY2ZWE2MTA4YmQ5OTNlNTgwYTg2ZTJm
14
- NWM4ZjcwODQ3M2MwNzE2YTU5NTczOWE3ZjVhN2U5MDBhZGU1OGJjMmRmMTU1
15
- YjIyMjU0MGRkMjg4MGIzNzBjZjU3MGUyNTQ4ZWYwZjU3MGM0N2U=
13
+ YjA2ZjIxNzBlZDgxNGRmZDJmODBiNWY1MDAxNmVhMGU1Y2E2MTdiNjY4ZjRl
14
+ MWQxNTQ2MWVmYjczYTFmMWI1YzZhNGQxMGZlZjFhZmQxMzg1MjZjNDcxNjM4
15
+ Zjk0ODBmOWMzNDcxYmQ2MDdmZDkxZjMzNTRhNWE0YzM1NDdhZTM=
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="inheritedJdk" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v3.2.14, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.5, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="capybara (v2.1.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v1.3.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.0.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.3.9, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="cliver (v0.2.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.3, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.4, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.5, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
30
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
31
+ <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
32
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v1.25, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
33
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.5.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
34
+ <orderEntry type="library" scope="PROVIDED" name="mocha (v0.14.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
35
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.8.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
36
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
37
+ <orderEntry type="library" scope="PROVIDED" name="poltergeist (v1.4.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
38
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
39
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
40
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.1.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
41
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v2.14.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
42
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.14.5, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
43
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v2.14.2, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
44
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v2.14.3, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
45
+ <orderEntry type="library" scope="PROVIDED" name="ruby-debug-base19x (v0.11.30.pre12, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
46
+ <orderEntry type="library" scope="PROVIDED" name="ruby-debug-ide (v0.4.17, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
47
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v0.9.9, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
48
+ <orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.35.1, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
49
+ <orderEntry type="library" scope="PROVIDED" name="websocket (v1.0.7, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
50
+ <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.3.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
51
+ <orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, RVM: ruby-1.9.3-p448 [acceptance_tests_support]) [gem]" level="application" />
52
+ </component>
53
+ </module>
54
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/acceptance_test.iml" filepath="$PROJECT_DIR$/.idea/acceptance_test.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
data/CHANGES CHANGED
@@ -7,3 +7,7 @@
7
7
  == Version 1.0.1
8
8
 
9
9
  * Adding licence.
10
+
11
+ == Version 1.0.2
12
+
13
+ * Small changes.
@@ -9,7 +9,6 @@ class AcceptanceTest
9
9
 
10
10
  def initialize project_root="."
11
11
  @project_root = project_root
12
- #@selenium_config = selenium_config
13
12
 
14
13
  @app_host = default_app_host
15
14
 
@@ -27,10 +26,14 @@ class AcceptanceTest
27
26
  select_driver driver
28
27
 
29
28
  if driver.to_s =~ /selenium/
30
- puts "\nSelenium Configuration: #{@selenium_config[:name]}"
31
- puts "Environment: #{@selenium_config[:env]}"
32
- puts "Application: #{@selenium_config[:webapp_url]}"
33
- puts "Selenium: #{@selenium_config[:selenium_host]}:#{@selenium_config[:selenium_port]}"
29
+ if @selenium_config.nil? or @selenium_config.size == 0
30
+ puts "Selenium configuration was not found."
31
+ else
32
+ puts "\nSelenium Configuration: #{@selenium_config[:name]}"
33
+ puts "Environment: #{@selenium_config[:env]}"
34
+ puts "Application: #{@selenium_config[:webapp_url]}"
35
+ puts "Selenium: #{@selenium_config[:selenium_host]}:#{@selenium_config[:selenium_port]}"
36
+ end
34
37
  end
35
38
  end
36
39
 
@@ -60,12 +63,11 @@ class AcceptanceTest
60
63
  private
61
64
 
62
65
  def default_app_host
63
- "http://#{self.class.get_localhost}:3000"
66
+ "http://#{AcceptanceTestHelper.get_localhost}:3000"
64
67
  end
65
68
 
66
69
  def set_defaults
67
70
  ENV['APP_HOST'] ||= app_host
68
- #ENV['DRIVER'] ||= "webkit"
69
71
  ENV['WAIT_TIME'] ||= "60"
70
72
  end
71
73
 
@@ -230,16 +232,5 @@ class AcceptanceTest
230
232
  puts full_description + "\n Screenshot: #{screenshot_url}"
231
233
  end
232
234
 
233
- def self.get_localhost
234
- orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true # turn off reverse DNS resolution temporarily
235
-
236
- UDPSocket.open do |s|
237
- s.connect '192.168.1.1', 1
238
- s.addr.last
239
- end
240
- ensure
241
- Socket.do_not_reverse_lookup = orig
242
- end
243
-
244
235
  end
245
236
 
@@ -0,0 +1,14 @@
1
+ class AcceptanceTestHelper
2
+
3
+ def self.get_localhost
4
+ orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true # turn off reverse DNS resolution temporarily
5
+
6
+ UDPSocket.open do |s|
7
+ s.connect '192.168.1.1', 1
8
+ s.addr.last
9
+ end
10
+ ensure
11
+ Socket.do_not_reverse_lookup = orig
12
+ end
13
+
14
+ end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1,3 +1,4 @@
1
1
  require 'acceptance_test/version'
2
+ require 'acceptance_test/acceptance_test_helper'
2
3
  require 'acceptance_test/acceptance_test'
3
4
  require 'acceptance_test/acceptance_shared_context'
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.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-12 00:00:00.000000000 Z
11
+ date: 2013-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -45,7 +45,10 @@ extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
47
  - .gitignore
48
+ - .idea/acceptance_test.iml
49
+ - .idea/encodings.xml
48
50
  - .idea/misc.xml
51
+ - .idea/modules.xml
49
52
  - .idea/scopes/scope_settings.xml
50
53
  - .idea/vcs.xml
51
54
  - .ruby-gemset
@@ -61,6 +64,7 @@ files:
61
64
  - lib/acceptance_test.rb
62
65
  - lib/acceptance_test/acceptance_shared_context.rb
63
66
  - lib/acceptance_test/acceptance_test.rb
67
+ - lib/acceptance_test/acceptance_test_helper.rb
64
68
  - lib/acceptance_test/version.rb
65
69
  - spec/features/features_spec_helper.rb
66
70
  - spec/features/google_search_spec.rb