initial import
[augment.git] / spec / augment_spec.rb
blob39ca10f2ae58e127937728a23146a13bc1ddbc43
1 $LOAD_PATH << File.dirname(__FILE__) + '/../lib'
2 require 'augment'
3 require 'coloring_augmentor'
4 require 'spec_helper'
6 describe AugmentBackend, " when augmenting by color" do
7   before do
8     FileUtils.cd(File.dirname(__FILE__) + '/fixtures/drinks')
9     FileUtils.rm_r('.augment') rescue nil
10     
11     ColoringAugmentor.run('lib/drink.rb')
12     ColoringAugmentor.run('lib/white_russian.rb')
13   end
15   it "should create .augment directory" do
16     File.should exist('.augment')
17   end
18   
19   it "should create .augment files for each code file"
20   it "should color red things red"
21 end
23 describe AugmentBackend, " when augmenting test results" do
25   it "should color passing tests green"
26   it "should color failing tests red"
27   it "should color errors orange"
28   it "should include failure message"
29   it "should highlight specific line"
30 end
32 describe AugmentBackend, " when augmenting flog results" do
34   it "should color a complex method"
35   it "should color a simple method"
36 end