Sha256: d4809baf3f4883aca11c93ad470fde0993bec5590cbdb1e0c55b18db78e29ad3
Contents?: true
Size: 848 Bytes
Versions: 6
Compression:
Stored size: 848 Bytes
Contents
require 'spec_helper' describe Dandelion::Tree do let(:tree) { test_tree } it 'has a commit' do expect(tree.commit).to eq test_commits.last end describe '#data' do it 'returns blob content for path' do expect(tree.data('foo')).to eq "foo\n" end context 'symlink' do let(:repo) { test_repo('repo_symlink') } let(:tree) { test_tree(repo: repo, commit: repo.lookup('4c19bbe7ba04230a0ae2281c1abbc48a76a66550')) } it 'returns target path of the symlink' do expect(tree.data('link')).to eq "baz/bar" end end context 'submodule' do let(:repo) { test_repo('repo_submodule') } let(:tree) { test_tree(repo: repo, commit: repo.lookup('ed393d7ff451fb04e9ea7c435e09303783106015')) } it 'does not raise error' do tree.data('repo') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems