test-harness 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/given.rb CHANGED
@@ -4,6 +4,8 @@ class TestHarness
4
4
  include TestHarness::TestHelper
5
5
 
6
6
  Dir.glob(Rails.root.join('app', 'test_harness', 'given/*.rb')).each do |file|
7
+ component = File.basename(file, '.rb')
8
+ require "given/#{component}"
7
9
  klass = ("TestHarness::Given::%s" % File.basename(file, '.rb').camelize).constantize
8
10
  include klass
9
11
  end
data/lib/ui_helper.rb CHANGED
@@ -3,6 +3,7 @@ class TestHarness
3
3
  def self.register_ui_components
4
4
  Dir.glob(Rails.root.join('app', 'test_harness', 'ui/*.rb')).each do |file|
5
5
  component = File.basename(file, '.rb')
6
+ require "ui/#{component}"
6
7
  klass = ("TestHarness::%s::%s" % [component.camelize, self.name.split('::').last]).constantize
7
8
  TestHarness.register_instance_option(self, component, klass.new)
8
9
  klass.send(:include, TestHarness::UIComponentHelper)
data/test-harness.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "test-harness"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Maher Hawash"]
12
- s.date = "2012-08-17"
12
+ s.date = "2012-08-23"
13
13
  s.description = "A test harness for rspec and cucumber which allows for separating responsibility between setting up the context and interacting with the browser, and cleaning up the step definition files."
14
14
  s.email = "gmhawash@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.homepage = "http://github.com/gmhawash/test_harness"
43
43
  s.licenses = ["MIT"]
44
44
  s.require_paths = ["lib"]
45
- s.rubygems_version = "1.8.15"
45
+ s.rubygems_version = "1.8.24"
46
46
  s.summary = "Mini test harness for rspec and cucumber"
47
47
 
48
48
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,102 +1,106 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: test-harness
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 0
10
- version: 0.4.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Maher Hawash
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-08-17 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-08-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 0
29
- version: "0"
30
- version_requirements: *id001
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
31
22
  type: :development
32
- name: rspec
33
23
  prerelease: false
34
- - !ruby/object:Gem::Dependency
35
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
36
25
  none: false
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- hash: 3
41
- segments:
42
- - 0
43
- version: "0"
44
- version_requirements: *id002
45
- type: :development
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
46
31
  name: rdoc
47
- prerelease: false
48
- - !ruby/object:Gem::Dependency
49
- requirement: &id003 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
50
33
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- hash: 3
55
- segments:
56
- - 0
57
- version: "0"
58
- version_requirements: *id003
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
59
38
  type: :development
60
- name: bundler
61
39
  prerelease: false
62
- - !ruby/object:Gem::Dependency
63
- requirement: &id004 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
64
49
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
70
- - 0
71
- version: "0"
72
- version_requirements: *id004
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
73
54
  type: :development
74
- name: jeweler
75
55
  prerelease: false
76
- - !ruby/object:Gem::Dependency
77
- requirement: &id005 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
78
57
  none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
86
- version_requirements: *id005
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: jeweler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
87
70
  type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
88
79
  name: gemcutter
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
89
87
  prerelease: false
90
- description: A test harness for rspec and cucumber which allows for separating responsibility between setting up the context and interacting with the browser, and cleaning up the step definition files.
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: A test harness for rspec and cucumber which allows for separating responsibility
95
+ between setting up the context and interacting with the browser, and cleaning up
96
+ the step definition files.
91
97
  email: gmhawash@gmail.com
92
98
  executables: []
93
-
94
99
  extensions: []
95
-
96
- extra_rdoc_files:
100
+ extra_rdoc_files:
97
101
  - LICENSE.txt
98
102
  - README.rdoc
99
- files:
103
+ files:
100
104
  - .document
101
105
  - .rspec
102
106
  - Gemfile
@@ -119,37 +123,31 @@ files:
119
123
  - spec/test_harness_spec.rb
120
124
  - test-harness.gemspec
121
125
  homepage: http://github.com/gmhawash/test_harness
122
- licenses:
126
+ licenses:
123
127
  - MIT
124
128
  post_install_message:
125
129
  rdoc_options: []
126
-
127
- require_paths:
130
+ require_paths:
128
131
  - lib
129
- required_ruby_version: !ruby/object:Gem::Requirement
132
+ required_ruby_version: !ruby/object:Gem::Requirement
130
133
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 3
135
- segments:
134
+ requirements:
135
+ - - ! '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ segments:
136
139
  - 0
137
- version: "0"
138
- required_rubygems_version: !ruby/object:Gem::Requirement
140
+ hash: 3576194467386638123
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
139
142
  none: false
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- hash: 3
144
- segments:
145
- - 0
146
- version: "0"
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
147
  requirements: []
148
-
149
148
  rubyforge_project:
150
- rubygems_version: 1.8.15
149
+ rubygems_version: 1.8.24
151
150
  signing_key:
152
151
  specification_version: 3
153
152
  summary: Mini test harness for rspec and cucumber
154
153
  test_files: []
155
-