Sha256: 293ff7d8e6c63c1dfc2ae078a22fdcdd7f50a612d3494d207b61e93d27c5156e
Contents?: true
Size: 923 Bytes
Versions: 3
Compression:
Stored size: 923 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') module Spackle::Output describe VimQuickfix do before do Spackle.stub!(:current_error) end it "should format errors in 'path:line: message' format" do VimQuickfix.new.format_backtrace_line("message", "file", "123").should == "file:123: message" end it "should strip newlines from messages" do VimQuickfix.new.format_backtrace_line("many\nlines", "ignore", "ignore").should_not match(/\n/) end it "should integrate with Base and return a nice quickfix!" do VimQuickfix.format( spackle_error_fixture ).should == <<-EOF /clutzy/child/waving/arms:1: CATASTROPHE: the milk was spilled! Begin crying? [Y/n] /cupboard/shelf/glass:350: CATASTROPHE: the milk was spilled! Begin crying? [Y/n] /fridge/shelf/jug/milk:4: CATASTROPHE: the milk was spilled! Begin crying? [Y/n] EOF end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spackle-0.0.3 | spec/spackle/output/vim_quickfix_spec.rb |
spackle-0.0.2 | spec/spackle/output/vim_quickfix_spec.rb |
spackle-0.0.1 | spec/spackle/output/vim_quickfix_spec.rb |