shared_should 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/shared_should.rb +1 -1
- data/shared_should.gemspec +1 -3
- metadata +3 -5
- data/test/test_helper.rb +0 -18
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
data/lib/shared_should.rb
CHANGED
@@ -3,7 +3,7 @@ require 'shoulda'
|
|
3
3
|
class Shoulda::Context
|
4
4
|
def method_missing(method, *args, &blk)
|
5
5
|
current_context = self
|
6
|
-
while current_context.kind_of?(Shoulda::Context) || current_context < Test::Unit::TestCase do
|
6
|
+
while current_context && (current_context.kind_of?(Shoulda::Context) || current_context < Test::Unit::TestCase) do
|
7
7
|
if Test::Unit::TestCase.shared_context_block_owner(current_context).shared_context_blocks[method.to_s]
|
8
8
|
current_context.send(method, args[0], self, &blk)
|
9
9
|
return
|
data/shared_should.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{shared_should}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Pearce"]
|
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/shared_should.rb",
|
28
28
|
"shared_should.gemspec",
|
29
29
|
"test/helper.rb",
|
30
|
-
"test/test_helper.rb",
|
31
30
|
"test/test_shared_should.rb",
|
32
31
|
"test/test_shared_should_helper.rb"
|
33
32
|
]
|
@@ -38,7 +37,6 @@ Gem::Specification.new do |s|
|
|
38
37
|
s.summary = %q{Share and reuse shoulds, contexts, and setup in Shoulda.}
|
39
38
|
s.test_files = [
|
40
39
|
"test/helper.rb",
|
41
|
-
"test/test_helper.rb",
|
42
40
|
"test/test_shared_should.rb",
|
43
41
|
"test/test_shared_should_helper.rb"
|
44
42
|
]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shared_should
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Pearce
|
@@ -126,7 +126,6 @@ files:
|
|
126
126
|
- lib/shared_should.rb
|
127
127
|
- shared_should.gemspec
|
128
128
|
- test/helper.rb
|
129
|
-
- test/test_helper.rb
|
130
129
|
- test/test_shared_should.rb
|
131
130
|
- test/test_shared_should_helper.rb
|
132
131
|
has_rdoc: true
|
@@ -165,6 +164,5 @@ specification_version: 3
|
|
165
164
|
summary: Share and reuse shoulds, contexts, and setup in Shoulda.
|
166
165
|
test_files:
|
167
166
|
- test/helper.rb
|
168
|
-
- test/test_helper.rb
|
169
167
|
- test/test_shared_should.rb
|
170
168
|
- test/test_shared_should_helper.rb
|
data/test/test_helper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'test/unit'
|
11
|
-
require 'shoulda'
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
-
require 'shared_should'
|
16
|
-
|
17
|
-
class Test::Unit::TestCase
|
18
|
-
end
|