symlink_spec.rb revision db149239590d2a39d399f12cd01609b190ea4763
require 'spec_helper'
describe Repository::Symlink do
describe 'repository created' do
let(:repository){ create :repository }
let(:link){ File.readlink(repository.symlink_name) }
it("symlink created"){ link.should == repository.local_path.to_s }
describe 'repository destroy' do
before { repository.destroy }
it("symlink removed"){ repository.symlink_name.exist?.should be(false) }
end
end
end