public
Description: Behaviour Driven Development framework for Ruby
Homepage: http://rspec.info
Clone URL: git://github.com/dchelimsky/rspec.git
Search Repo:
Click here to lend your support to: rspec and make a donation at www.pledgie.com !
Remove unneeded defensive code.
btakita (author)
Thu May 22 00:01:58 -0700 2008
commit  dff59d633d71eeb621bcd6b9f5d1238f78c62647
tree    477f48968a84b7bb78c9256b128648d148c54be7
parent  05138e5c973f3b69dd349570e29bad6ed55c9078
...
5
6
7
8
9
10
11
12
13
14
15
 
 
16
 
 
 
 
17
18
19
...
5
6
7
 
 
 
 
 
 
 
 
8
9
10
11
12
13
14
15
16
17
0
@@ -5,15 +5,13 @@
0
     module Formatter
0
       class FailingExampleGroupsFormatter < BaseTextFormatter
0
         def example_failed(example, counter, failure)
0
- if @example_group
0
- description_parts = @example_group.description_parts.collect do |description|
0
- description =~ /(.*) \(druby.*\)$/ ? $1 : description
0
- end
0
- @output.puts ::Spec::Example::ExampleGroupMethods.description_text(*description_parts)
0
-
0
- @output.flush
0
- @example_group = nil
0
+ description_parts = @example_group.description_parts.collect do |description|
0
+ description =~ /(.*) \(druby.*\)$/ ? $1 : description
0
           end
0
+ @output.puts ::Spec::Example::ExampleGroupMethods.description_text(*description_parts)
0
+
0
+ @output.flush
0
+ @example_group = nil
0
         end
0
 
0
         def dump_failure(counter, failure)
...
6
7
8
9
 
10
11
12
...
6
7
8
 
9
10
11
12
0
@@ -6,7 +6,7 @@
0
       TINY = 3
0
       RELEASE_CANDIDATE = nil
0
 
0
- BUILD_TIME_UTC = 20080522064453
0
+ BUILD_TIME_UTC = 20080522065805
0
 
0
       STRING = [MAJOR, MINOR, TINY].join('.')
0
       TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')

Comments

    No one has commented yet.