Sha256: 29e76c0116d35a958c6583c7031b4da436da427def3fd9b99efc90dd0c612d69
Contents?: true
Size: 622 Bytes
Versions: 94
Compression:
Stored size: 622 Bytes
Contents
require File.dirname(__FILE__) + '/../../../spec_helper.rb' require 'spec/runner/formatter/snippet_extractor' module Spec module Runner module Formatter describe SnippetExtractor do it "should fall back on a default message when it doesn't understand a line" do SnippetExtractor.new.snippet_for("blech").should == ["# Couldn't get snippet for blech", 1] end it "should fall back on a default message when it doesn't find the file" do SnippetExtractor.new.lines_around("blech", 8).should == "# Couldn't get snippet for blech" end end end end end
Version data entries
94 entries across 94 versions & 12 rubygems