Sha256: bf53c7731ae3b52c21d2e549f3fc7ece2a4aad1dc31d646c449dabcc065effea

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

describe LicenseFinder::FileParser do
  subject { LicenseFinder::FileParser.new('root', 'root/nested/path') }

  context "ignoring text" do
    before do
      stub(IO).read { "file text" }
      stub(IO).binread { "file text" }
    end

    its(:file_path) { should == 'nested/path' }
    its(:file_name) { should == 'path' }
    its(:text) { should == 'file text' }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
license_finder-0.4.5 spec/lib/license_finder/file_parser_spec.rb
license_finder-0.4.1 spec/file_parser_spec.rb
license_finder-0.4.0 spec/file_parser_spec.rb
license_finder-0.3.0 spec/file_parser_spec.rb
license_finder-0.2.0 spec/file_parser_spec.rb
license_finder-0.1.0 spec/file_parser_spec.rb