Skip to content

Commit 09d8ece

Browse files
committed
Use nyan cat formatter
1 parent 1edbb19 commit 09d8ece

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format NyanCatMusicFormatter

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ notifications:
1515
on_start: always
1616
on_finish: always
1717

18+
script:
19+
- rake
20+
- bundle exec rspec spec
21+
1822
before_script:
1923
- "echo 'Before script'"
2024
# - "sudo service postgresql restart"

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source :rubygems
2+
3+
gem 'rspec'
4+
gem 'nyan-cat-formatter'

Gemfile.lock

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
diff-lcs (1.1.3)
5+
nyan-cat-formatter (0.2.0)
6+
rspec (2.12.0)
7+
rspec-core (~> 2.12.0)
8+
rspec-expectations (~> 2.12.0)
9+
rspec-mocks (~> 2.12.0)
10+
rspec-core (2.12.0)
11+
rspec-expectations (2.12.0)
12+
diff-lcs (~> 1.1.3)
13+
rspec-mocks (2.12.0)
14+
15+
PLATFORMS
16+
ruby
17+
18+
DEPENDENCIES
19+
nyan-cat-formatter
20+
rspec

Rakefile

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ task :test do
1818
#sleep 3
1919
puts 'about 500 miles, and about 500 more'
2020
exit 0
21+
22+
`rspec --format NyanCatFormatter`
2123
end
2224

2325
task :default => :test

spec/fake_spec.rb

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
describe 'lololo' do
2+
500.times do
3+
it 'does something' do
4+
r = rand
5+
if r < 0.02
6+
true.should be_false
7+
elsif r < 0.05
8+
pending
9+
else
10+
true.should be_true
11+
end
12+
end
13+
end
14+
15+
end

0 commit comments

Comments
 (0)