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

Version Path
dchelimsky-rspec-1.1.10 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.1 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.2 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.3 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.4 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.5 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.6 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11.7 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.11 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.12 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.1 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.13 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.2 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.3 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.4 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.5 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.6 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.7 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.8 spec/spec/runner/formatter/snippet_extractor_spec.rb
dchelimsky-rspec-1.1.99.9 spec/spec/runner/formatter/snippet_extractor_spec.rb