rspec 1.2.1 → 1.2.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.
@@ -1,5 +1,19 @@
1
+ === Version 1.2.2 / 2009-03-22
2
+
3
+ Bug-fix release (fixes regression introduced in 1.2.1)
4
+
5
+ * bug fixes
6
+
7
+ * fixed bug in which spec_parser raised an error for custom example group
8
+ base classes
9
+
1
10
  === Version 1.2.1 / 2009-03-22
2
11
 
12
+ This is a bug-fix release, recommended for anybody who has already upgraded to
13
+ rspec-1.2.0.
14
+
15
+ See Upgrade.rdoc for information about upgrading to rspec-1.2.1
16
+
3
17
  * enhancments
4
18
 
5
19
  * matchers, including the new DSL, easily added to your test/unit tests
data/Rakefile CHANGED
@@ -10,7 +10,6 @@ require 'cucumber/rake/task'
10
10
 
11
11
  Hoe.new('rspec', Spec::VERSION::STRING) do |p|
12
12
  p.summary = Spec::VERSION::SUMMARY
13
- p.url = 'http://rspec.info/'
14
13
  p.description = "Behaviour Driven Development for Ruby."
15
14
  p.rubyforge_name = 'rspec'
16
15
  p.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
@@ -35,6 +34,10 @@ end
35
34
  Rake.application.instance_variable_get('@tasks').delete(task)
36
35
  end
37
36
 
37
+ task :post_blog do
38
+ # no-op
39
+ end
40
+
38
41
  # Some of the tasks are in separate files since they are also part of the website documentation
39
42
  load File.dirname(__FILE__) + '/resources/rake/examples.rake'
40
43
  load File.dirname(__FILE__) + '/resources/rake/examples_with_rcov.rake'
@@ -1,4 +1,4 @@
1
- = Upgrade to rspec-1.2.1 (in dev)
1
+ = Upgrade to rspec-1.2.1
2
2
 
3
3
  == What's Changed
4
4
 
@@ -13,10 +13,11 @@ module Spec
13
13
  best_match.clear
14
14
  file = File.expand_path(file)
15
15
  @run_options.example_groups.each do |example_group|
16
- consider_example_group_for_best_match example_group, file, line_number
16
+ next unless example_group.location
17
+ consider_example_group_for_best_match(example_group, file, line_number)
17
18
 
18
19
  example_group.examples.each do |example|
19
- consider_example_for_best_match example, example_group, file, line_number
20
+ consider_example_for_best_match(example, example_group, file, line_number)
20
21
  end
21
22
  end
22
23
  if best_match[:example_group]
@@ -53,8 +54,8 @@ module Spec
53
54
 
54
55
  def is_best_match?(file, line_number, example_file, example_line)
55
56
  file == File.expand_path(example_file) &&
56
- example_line <= line_number &&
57
- example_line > best_match[:line].to_i
57
+ example_line <= line_number &&
58
+ example_line > best_match[:line].to_i
58
59
  end
59
60
 
60
61
  def parse_location(location)
@@ -3,7 +3,7 @@ module Spec # :nodoc:
3
3
  unless defined? MAJOR
4
4
  MAJOR = 1
5
5
  MINOR = 2
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
9
9
 
@@ -86,6 +86,14 @@ describe "SpecParser" do
86
86
  parser.send(:parse_location, input ).should == [expected, 999]
87
87
  end
88
88
  end
89
+
90
+ it "ignores example group base classes which have no location" do
91
+ options = stub('options', :example_groups => [
92
+ stub('example_group', :location => nil)
93
+ ])
94
+ parser = Spec::Runner::SpecParser.new(options)
95
+ parser.spec_name_for('foo',37).should == nil
96
+ end
89
97
 
90
98
  end
91
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RSpec Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-22 00:00:00 -05:00
12
+ date: 2009-03-23 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -404,11 +404,11 @@ files:
404
404
  - spec/spec/spec_classes.rb
405
405
  - spec/spec_helper.rb
406
406
  has_rdoc: true
407
- homepage: http://rspec.info/
407
+ homepage: http://rspec.info
408
408
  post_install_message: |
409
409
  **************************************************
410
410
 
411
- Thank you for installing rspec-1.2.1
411
+ Thank you for installing rspec-1.2.2
412
412
 
413
413
  Please be sure to read History.rdoc and Upgrade.rdoc
414
414
  for useful information about this release.
@@ -438,6 +438,6 @@ rubyforge_project: rspec
438
438
  rubygems_version: 1.3.1
439
439
  signing_key:
440
440
  specification_version: 2
441
- summary: rspec 1.2.1
441
+ summary: rspec 1.2.2
442
442
  test_files: []
443
443