rspec 0.6.1 → 0.6.2
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/CHANGES +7 -0
- data/Rakefile +2 -1
- data/lib/spec/api/mocks/message_expectation.rb +3 -0
- data/lib/spec/rake/spectask.rb +4 -4
- data/lib/spec/runner/context_eval.rb +1 -3
- data/lib/spec/version.rb +1 -1
- metadata +3 -3
data/CHANGES
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= RSpec Changelog
|
2
2
|
|
3
|
+
== Version 0.6.2
|
4
|
+
This release fixes a couple of regressions with the rake task that were introduced in the previous version (0.6.1)
|
5
|
+
|
6
|
+
* Fixed [#5518] ruby -w: warnings in 0.6.1
|
7
|
+
* Applied [#5525] fix rake task path to spec tool for gem-installed rspec (patch from Riley Lynch)
|
8
|
+
* Fixed a teensey regression with the rake task - introduced in 0.6.1. The spec command is now quoted so it works on windows.
|
9
|
+
|
3
10
|
== Version 0.6.1
|
4
11
|
This is the "fix the most annoying bugs release" of RSpec. There are 9 bugfixes this time.
|
5
12
|
Things that may break backwards compatibility:
|
data/Rakefile
CHANGED
@@ -39,12 +39,13 @@ Rake::TestTask.new do |t|
|
|
39
39
|
tests.exclude 'test/spec/test_to_spec/*.rb' if windows
|
40
40
|
t.test_files = tests
|
41
41
|
t.verbose = true
|
42
|
+
t.warning = true
|
42
43
|
end
|
43
44
|
|
44
45
|
Rcov::RcovTask.new do |t|
|
45
46
|
t.test_files = FileList['test/**/*_test.rb']
|
46
47
|
t.output_dir = 'doc/output/coverage'
|
47
|
-
t.rcov_opts = []
|
48
|
+
t.rcov_opts = ['--text-report']
|
48
49
|
end
|
49
50
|
|
50
51
|
desc 'Translate our own tests to specs'
|
data/lib/spec/rake/spectask.rb
CHANGED
@@ -26,7 +26,7 @@ module Spec
|
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
28
|
# Array of directories to be added to $LOAD_PATH before running the
|
29
|
-
# specs. Defaults to ['lib']
|
29
|
+
# specs. Defaults to ['<the absolute path to RSpec's lib directory>']
|
30
30
|
attr_accessor :libs
|
31
31
|
|
32
32
|
# If true, requests that the specs be run with the warning flag set.
|
@@ -75,7 +75,7 @@ module Spec
|
|
75
75
|
# Create a specing task.
|
76
76
|
def initialize(name=:spec)
|
77
77
|
@name = name
|
78
|
-
@libs = [
|
78
|
+
@libs = [File.expand_path(File.dirname(__FILE__) + '/../../../lib')]
|
79
79
|
@pattern = nil
|
80
80
|
@spec_files = nil
|
81
81
|
@spec_opts = []
|
@@ -104,7 +104,7 @@ module Spec
|
|
104
104
|
task @name do
|
105
105
|
RakeFileUtils.verbose(@verbose) do
|
106
106
|
ruby_opts = @ruby_opts.clone
|
107
|
-
ruby_opts.push( "-I#{lib_path}" )
|
107
|
+
ruby_opts.push( "-I\"#{lib_path}\"" )
|
108
108
|
ruby_opts.push( "-S rcov" ) if @rcov
|
109
109
|
ruby_opts.push( "-w" ) if @warning
|
110
110
|
|
@@ -117,7 +117,7 @@ module Spec
|
|
117
117
|
ruby_opts.join(" ") + " " +
|
118
118
|
rcov_option_list +
|
119
119
|
(@rcov ? %[ -o "#{@rcov_dir}" ] : "") +
|
120
|
-
spec_script + " " +
|
120
|
+
'"' + spec_script + '"' + " " +
|
121
121
|
(@rcov ? "-- " : "") +
|
122
122
|
spec_option_list + " " +
|
123
123
|
file_list.collect { |fn| %["#{fn}"] }.join(' ') + " " +
|
@@ -86,9 +86,7 @@ module Spec
|
|
86
86
|
end
|
87
87
|
|
88
88
|
def execution_context_class
|
89
|
-
|
90
|
-
derive_execution_context_class_from_context_superclass
|
91
|
-
@execution_context_class
|
89
|
+
@execution_context_class ||= derive_execution_context_class_from_context_superclass
|
92
90
|
end
|
93
91
|
|
94
92
|
def derive_execution_context_class_from_context_superclass
|
data/lib/spec/version.rb
CHANGED
metadata
CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.6.
|
7
|
-
date: 2006-08-
|
8
|
-
summary: RSpec-0.6.
|
6
|
+
version: 0.6.2
|
7
|
+
date: 2006-08-26 00:00:00 +02:00
|
8
|
+
summary: RSpec-0.6.2 - BDD for Ruby http://rspec.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rspec-devel@rubyforge.org
|