public
Description: Augment is a system for gathering metadata from code and displaying it.
Homepage: http://augment.rubyforge.org
Clone URL: git://github.com/technomancy/augment.git
technomancy (author)
Mon Oct 08 11:18:22 -0700 2007
augment / spec / augment_spec.rb
100644 37 lines (28 sloc) 0.968 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$LOAD_PATH << File.dirname(__FILE__) + '/../lib'
require 'augment'
require 'coloring_augmentor'
require 'spec_helper'
 
describe AugmentBackend, " when augmenting by color" do
  before do
    FileUtils.cd(File.dirname(__FILE__) + '/fixtures/drinks')
    FileUtils.rm_r('.augment') rescue nil
    
    ColoringAugmentor.run('lib/drink.rb')
    ColoringAugmentor.run('lib/white_russian.rb')
  end
 
  it "should create .augment directory" do
    File.should exist('.augment')
  end
  
  it "should create .augment files for each code file"
  it "should color red things red"
end
 
describe AugmentBackend, " when augmenting test results" do
 
  it "should color passing tests green"
  it "should color failing tests red"
  it "should color errors orange"
  it "should include failure message"
  it "should highlight specific line"
end
 
describe AugmentBackend, " when augmenting flog results" do
 
  it "should color a complex method"
  it "should color a simple method"
end