shared_should 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/lib/shared_should.rb CHANGED
@@ -10,6 +10,7 @@ class Shoulda::Context
10
10
  end
11
11
  current_context = current_context.parent
12
12
  end
13
+ super
13
14
  end
14
15
  end
15
16
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{shared_should}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
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"]
12
- s.date = %q{2011-02-04}
12
+ s.date = %q{2011-02-08}
13
13
  s.description = %q{Share and reuse shoulds, contexts, and setup in Shoulda.}
14
14
  s.email = %q{michael.pearce@bookrenter.com}
15
15
  s.extra_rdoc_files = [
@@ -10,6 +10,24 @@ class TestSharedShould < Test::Unit::TestCase
10
10
  assert @setup_instance_method_executed
11
11
  end
12
12
 
13
+ begin
14
+ invalid_method do
15
+ end
16
+ raise "Should have raised a NoMethodError"
17
+ rescue NoMethodError
18
+ # successfully raised NoMethodError
19
+ end
20
+
21
+ context "NoMethodError check" do
22
+ begin
23
+ invalid_method do
24
+ end
25
+ raise "Should have raised a NoMethodError"
26
+ rescue NoMethodError
27
+ # successfully raised NoMethodError
28
+ end
29
+ end
30
+
13
31
  context ".shared_context_for" do
14
32
  context "without params" do
15
33
  shared_context_for "a valid value" do
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Pearce
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 -08:00
18
+ date: 2011-02-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency