shared_should 0.5.2 → 0.5.3
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 -0
- data/shared_should.gemspec +2 -2
- data/test/test_shared_should.rb +18 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/lib/shared_should.rb
CHANGED
data/shared_should.gemspec
CHANGED
@@ -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.
|
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-
|
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 = [
|
data/test/test_shared_should.rb
CHANGED
@@ -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:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
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-
|
18
|
+
date: 2011-02-08 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|