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 !
Speed up main rspec suite
btakita (author)
Wed May 21 23:47:38 -0700 2008
commit  05138e5c973f3b69dd349570e29bad6ed55c9078
tree    b0a9a2ef8863fc0999eeebca6068150851dcb667
parent  36f74abcba1c916a04ed0688b8ea1452ff04951d
...
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 = 20080522063005
0
+ BUILD_TIME_UTC = 20080522064453
0
 
0
       STRING = [MAJOR, MINOR, TINY].join('.')
0
       TAG = "REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}".upcase.gsub(/\.|-/, '_')
...
3
4
5
 
 
6
7
8
 
9
10
 
 
 
 
11
12
13
...
32
33
34
35
36
37
 
 
 
38
39
40
...
3
4
5
6
7
8
9
 
10
11
12
13
14
15
16
17
18
19
...
38
39
40
 
 
 
41
42
43
44
45
46
0
@@ -3,11 +3,17 @@
0
 describe "SpecParser" do
0
   attr_reader :parser, :file
0
   before(:each) do
0
+ @original_rspec_options = $rspec_options
0
+ $rspec_options = ::Spec::Runner::Options.new(StringIO.new, StringIO.new)
0
     @parser = Spec::Runner::SpecParser.new
0
     @file = "#{File.dirname(__FILE__)}/spec_parser/spec_parser_fixture.rb"
0
- require file
0
+ load file
0
   end
0
 
0
+ after do
0
+ $rspec_options = @original_rspec_options
0
+ end
0
+
0
   it "should find spec name for 'specify' at same line" do
0
     parser.spec_name_for(file, 5).should == "c 1"
0
   end
0
@@ -32,9 +38,9 @@
0
     parser.spec_name_for(file, 14).should == "d"
0
   end
0
 
0
- it "should find nearest example name between examples" do
0
- parser.spec_name_for(file, 7).should == "c 1"
0
- end
0
+ it "should find nearest example name between examples" do
0
+ parser.spec_name_for(file, 7).should == "c 1"
0
+ end
0
 
0
   it "should find nothing outside a context" do
0
     parser.spec_name_for(file, 2).should be_nil

Comments

    No one has commented yet.