rspec 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
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'
@@ -18,6 +18,9 @@ module Spec
18
18
  @symbol_to_throw = nil
19
19
  @ordering = expectation_ordering
20
20
  @ordered = false
21
+ @at_least = nil
22
+ @at_most = nil
23
+ @args_to_yield = nil
21
24
  end
22
25
 
23
26
  def matches(sym, args)
@@ -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 = ["lib"]
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
- return @execution_context_class if @execution_context_class
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
@@ -3,7 +3,7 @@ module Spec
3
3
  unless defined? MAJOR
4
4
  MAJOR = 0
5
5
  MINOR = 6
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
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.1
7
- date: 2006-08-23 00:00:00 +02:00
8
- summary: RSpec-0.6.1 - BDD for Ruby http://rspec.rubyforge.org/
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