shared_should 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -1
- data/VERSION +1 -1
- data/lib/shared_should.rb +3 -1
- data/shared_should.gemspec +1 -1
- data/test/test_shared_should.rb +1 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -110,7 +110,6 @@ Some rules:
|
|
110
110
|
* When <tt>use\_should</tt>, <tt>use\_context</tt> or <tt>use\_setup</tt> is invoked, it searches up the context hierarchy to find a matching shared definition.
|
111
111
|
* You can redefine your shares by using the same name. These shares will only be available in in the current and descendant contexts.
|
112
112
|
* Shares defined at the root (on your TestCase) are available in all contexts.
|
113
|
-
* If you define a shared setup at the root level, you will need to call <tt>super</tt> if you have a setup instance method for your test.
|
114
113
|
|
115
114
|
### Initialization Block
|
116
115
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/lib/shared_should.rb
CHANGED
@@ -42,7 +42,9 @@ class Test::Unit::TestCase
|
|
42
42
|
return context_or_test_class.kind_of?(Shoulda::Context) ? context_or_test_class : Test::Unit::TestCase
|
43
43
|
end
|
44
44
|
|
45
|
-
|
45
|
+
alias_method :initialize_without_shared_setup_execute, :initialize
|
46
|
+
def initialize(test_name)
|
47
|
+
initialize_without_shared_setup_execute(test_name)
|
46
48
|
(@@setup_blocks[self.class] || []).each do |setup_block|
|
47
49
|
setup_block.bind(self).call
|
48
50
|
end
|
data/shared_should.gemspec
CHANGED
data/test/test_shared_should.rb
CHANGED
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: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 4
|
10
|
+
version: 0.6.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Pearce
|