Skip to content
Newer
Older
100644 21 lines (17 sloc) 564 Bytes
4f63a36 @mattsears Initial commit
authored Nov 14, 2011
1 # -*- coding: utf-8 -*-
2
14e198c @blackxored Start on RSpec3 formatter API
blackxored authored Feb 28, 2014
3 require 'nyan_cat_formatter/common'
4
d5cb720 RSpec 1.3 support
Irina Bednova authored Dec 3, 2011
5 rspec_bin = $0.split('/').last
aefa161 @rgould Default to rspec2. This allows working with spork.
rgould authored Dec 15, 2011
6 if rspec_bin == 'spec'
99bb235 @cbelsole moved base formatter before rspec1
cbelsole authored Aug 24, 2014
7 ['spec', 'spec/runner/formatter/base_text_formatter', 'nyan_cat_formatter/rspec1'].each {|f| require f}
14e198c @blackxored Start on RSpec3 formatter API
blackxored authored Feb 28, 2014
8 formatter = RSpec1
aefa161 @rgould Default to rspec2. This allows working with spork.
rgould authored Dec 15, 2011
9 else
14e198c @blackxored Start on RSpec3 formatter API
blackxored authored Feb 28, 2014
10 require 'rspec/core/formatters/base_text_formatter'
11 if Gem::Version.new(RSpec::Core::Version::STRING).release >= Gem::Version.new('3.0.0')
12 require 'nyan_cat_formatter/rspec3'
13 formatter = RSpec3
14 else
15 require 'nyan_cat_formatter/rspec2'
16 formatter = RSpec2
5b99e2a @mattsears Common methods can be shared between both rspec 1.3 and 2.0 versions
authored Dec 7, 2011
17 end
4f63a36 @mattsears Initial commit
authored Nov 15, 2011
18 end
19
14e198c @blackxored Start on RSpec3 formatter API
blackxored authored Feb 28, 2014
20 NyanCatFormatter = formatter
Something went wrong with that request. Please try again.