1 $LOAD_PATH << File.dirname(__FILE__) + '/../lib'
3 require 'coloring_augmentor'
6 describe AugmentBackend, " when augmenting by color" do
8 FileUtils.cd(File.dirname(__FILE__) + '/fixtures/drinks')
9 FileUtils.rm_r('.augment') rescue nil
11 ColoringAugmentor.run('lib/drink.rb')
12 ColoringAugmentor.run('lib/white_russian.rb')
15 it "should create .augment directory" do
16 File.should exist('.augment')
19 it "should create .augment files for each code file"
20 it "should color red things red"
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"
32 describe AugmentBackend, " when augmenting flog results" do
34 it "should color a complex method"
35 it "should color a simple method"