always_execute 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -29,14 +29,14 @@ Jeweler::RubygemsDotOrgTasks.new
|
|
29
29
|
require 'rake/testtask'
|
30
30
|
Rake::TestTask.new(:test) do |test|
|
31
31
|
test.libs << 'lib' << 'test'
|
32
|
-
test.pattern = 'test
|
32
|
+
test.pattern = 'test/**/*_test.rb'
|
33
33
|
test.verbose = true
|
34
34
|
end
|
35
35
|
|
36
36
|
require 'rcov/rcovtask'
|
37
37
|
Rcov::RcovTask.new do |test|
|
38
38
|
test.libs << 'test'
|
39
|
-
test.pattern = 'test
|
39
|
+
test.pattern = 'test/**/*_test.rb'
|
40
40
|
test.verbose = true
|
41
41
|
end
|
42
42
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/always_execute.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{always_execute}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
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-08-
|
12
|
+
s.date = %q{2011-08-22}
|
13
13
|
s.description = %q{Adds execute and expect test blocks for added BDD test clarity.}
|
14
14
|
s.email = %q{michael.pearce@bookrenter.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -29,8 +29,8 @@ Gem::Specification.new do |s|
|
|
29
29
|
"lib/shoulda_execute.rb",
|
30
30
|
"lib/shoulda_expects.rb",
|
31
31
|
"test/helper.rb",
|
32
|
-
"test/
|
33
|
-
"test/
|
32
|
+
"test/shoulda_execute_test.rb",
|
33
|
+
"test/shoulda_expects_test.rb"
|
34
34
|
]
|
35
35
|
s.homepage = %q{http://github.com/michaelgpearce/always_execute}
|
36
36
|
s.licenses = ["MIT"]
|
@@ -39,8 +39,8 @@ Gem::Specification.new do |s|
|
|
39
39
|
s.summary = %q{Adds execute and expect test blocks for added BDD test clarity.}
|
40
40
|
s.test_files = [
|
41
41
|
"test/helper.rb",
|
42
|
-
"test/
|
43
|
-
"test/
|
42
|
+
"test/shoulda_execute_test.rb",
|
43
|
+
"test/shoulda_expects_test.rb"
|
44
44
|
]
|
45
45
|
|
46
46
|
if s.respond_to? :specification_version then
|
data/lib/shoulda_execute.rb
CHANGED
@@ -13,7 +13,6 @@ class Shoulda::Context
|
|
13
13
|
else
|
14
14
|
should_without_execute(name, options) do
|
15
15
|
if @execute_block
|
16
|
-
puts self
|
17
16
|
self.instance_variable_set('@execute_result', Shoulda::Context.shoulda_execute_call_block(self, @execute_block))
|
18
17
|
end
|
19
18
|
Shoulda::Context.shoulda_execute_call_block(self, block)
|
@@ -31,7 +30,6 @@ class Shoulda::Context
|
|
31
30
|
|
32
31
|
def self.should_execute_shared_should_available?
|
33
32
|
Test::Unit::TestCase.respond_to? :share_context
|
34
|
-
true
|
35
33
|
end
|
36
34
|
end
|
37
35
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "helper"
|
2
2
|
|
3
|
-
class
|
3
|
+
class ShouldaExecuteTest < Test::Unit::TestCase
|
4
4
|
context ".execute" do
|
5
5
|
context "with execute_result on execute" do
|
6
6
|
execute do
|
@@ -9,7 +9,7 @@ class TestShouldaExecute < Test::Unit::TestCase
|
|
9
9
|
|
10
10
|
context "with shared_should library" do
|
11
11
|
setup do
|
12
|
-
assert
|
12
|
+
assert ShouldaExecuteTest.respond_to? :share_should
|
13
13
|
end
|
14
14
|
|
15
15
|
should "set execute_result to execute block return value" do
|
@@ -64,5 +64,5 @@ class TestShouldaExecute < Test::Unit::TestCase
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: always_execute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
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-08-
|
18
|
+
date: 2011-08-22 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -156,8 +156,8 @@ files:
|
|
156
156
|
- lib/shoulda_execute.rb
|
157
157
|
- lib/shoulda_expects.rb
|
158
158
|
- test/helper.rb
|
159
|
-
- test/
|
160
|
-
- test/
|
159
|
+
- test/shoulda_execute_test.rb
|
160
|
+
- test/shoulda_expects_test.rb
|
161
161
|
has_rdoc: true
|
162
162
|
homepage: http://github.com/michaelgpearce/always_execute
|
163
163
|
licenses:
|
@@ -194,5 +194,5 @@ specification_version: 3
|
|
194
194
|
summary: Adds execute and expect test blocks for added BDD test clarity.
|
195
195
|
test_files:
|
196
196
|
- test/helper.rb
|
197
|
-
- test/
|
198
|
-
- test/
|
197
|
+
- test/shoulda_execute_test.rb
|
198
|
+
- test/shoulda_expects_test.rb
|