chemistrykit 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/chemistrykit.gemspec +2 -2
- data/lib/chemistrykit/cli/cli.rb +6 -1
- metadata +4 -5
- data/lib/chemistrykit/shared_context.rb +0 -34
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
#3.0.1 (2013-07-05)
|
2
|
+
Made the base url available in the env for formula usage
|
3
|
+
|
4
|
+
- Bumped version to 3.0.1 to prepare for release.
|
5
|
+
- removed unused shared context file, and updated config parameter passing
|
6
|
+
- Added an environment variable setter for base_url based on the config object in a before(:each) block
|
7
|
+
|
1
8
|
#3.0.0 (2013-07-04)
|
2
9
|
Now with concurrent tests
|
3
10
|
|
data/chemistrykit.gemspec
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "chemistrykit"
|
5
|
-
s.version = "3.0.
|
5
|
+
s.version = "3.0.1"
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ["Dave Haeffner", "Jason Fox"]
|
8
8
|
s.email = ["dave@arrgyle.com", "jason@arrgyle.com"]
|
9
9
|
s.homepage = "https://github.com/arrgyle/chemistrykit"
|
10
10
|
s.summary = "A simple and opinionated web testing framework for Selenium that follows convention over configuration."
|
11
|
-
s.description = "
|
11
|
+
s.description = "Made the base url available in the env for formula usage"
|
12
12
|
s.license = 'MIT'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split($/)
|
data/lib/chemistrykit/cli/cli.rb
CHANGED
@@ -110,9 +110,14 @@ module ChemistryKit
|
|
110
110
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
111
111
|
c.filter_run @tags[:filter] unless @tags[:filter].nil?
|
112
112
|
c.filter_run_excluding @tags[:exclusion_filter] unless @tags[:exclusion_filter].nil?
|
113
|
+
c.before(:all) do
|
114
|
+
# set the config available globaly
|
115
|
+
@config = config
|
116
|
+
# assign base url to env variable for formulas
|
117
|
+
ENV['BASE_URL'] = config.base_url
|
118
|
+
end
|
113
119
|
c.before(:each) do
|
114
120
|
@driver = SeleniumConnect.start
|
115
|
-
@config = config
|
116
121
|
end
|
117
122
|
c.after(:each) do
|
118
123
|
@driver.quit
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chemistrykit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thor
|
@@ -220,7 +220,7 @@ dependencies:
|
|
220
220
|
- - ~>
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: 0.9.0
|
223
|
-
description:
|
223
|
+
description: Made the base url available in the env for formula usage
|
224
224
|
email:
|
225
225
|
- dave@arrgyle.com
|
226
226
|
- jason@arrgyle.com
|
@@ -264,7 +264,6 @@ files:
|
|
264
264
|
- lib/chemistrykit/configuration.rb
|
265
265
|
- lib/chemistrykit/formula/base.rb
|
266
266
|
- lib/chemistrykit/parallel_tests_mods.rb
|
267
|
-
- lib/chemistrykit/shared_context.rb
|
268
267
|
- lib/templates/beaker.tt
|
269
268
|
- lib/templates/beaker_with_formula.tt
|
270
269
|
- lib/templates/chemistrykit/.rspec
|
@@ -302,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
301
|
version: '0'
|
303
302
|
segments:
|
304
303
|
- 0
|
305
|
-
hash: -
|
304
|
+
hash: -4251143556691358263
|
306
305
|
requirements: []
|
307
306
|
rubyforge_project:
|
308
307
|
rubygems_version: 1.8.25
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Encoding: utf-8
|
2
|
-
|
3
|
-
require 'rspec/core/shared_context'
|
4
|
-
require 'selenium-connect'
|
5
|
-
require 'chemistrykit/configuration'
|
6
|
-
require 'yaml'
|
7
|
-
|
8
|
-
module ChemistryKit
|
9
|
-
# Extends the Rspec Shared Context to include hooks for Selenium Connect
|
10
|
-
module SharedContext
|
11
|
-
extend RSpec::Core::SharedContext
|
12
|
-
|
13
|
-
config_file = File.join(Dir.getwd, ENV['CONFIG_FILE'])
|
14
|
-
config = ChemistryKit::Configuration.initialize_with_yaml config_file
|
15
|
-
|
16
|
-
SeleniumConnect.configure do |c|
|
17
|
-
c.populate_with_hash config.selenium_connect
|
18
|
-
end
|
19
|
-
|
20
|
-
before(:each) do
|
21
|
-
@driver = SeleniumConnect.start
|
22
|
-
@config = config
|
23
|
-
end
|
24
|
-
|
25
|
-
after(:each) do
|
26
|
-
@driver.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
after(:all) do
|
30
|
-
SeleniumConnect.finish
|
31
|
-
end
|
32
|
-
|
33
|
-
end # SharedContext
|
34
|
-
end # ChemistryKit
|