repository_test.rb revision fd556d3aae9e1b50625e815f5ff9141ddbfecae3
require 'test_helper'
setup do
end
teardown do
end
repository = FactoryGirl.build :repository, user: @user, name: 'repositories'
end
end
setup do
end
end
end
end
setup do
@repository.access = 'private'
end
@repository.name += "_foo"
end
@repository.access = 'public_r'
end
end
setup do
@message = 'test message'
@content = "(Cat x)\n"
# create directory if it doesn't exist
dir = File.dirname(@file_path)
end
# create file
end
end
setup do
@version = @repository.save_file(@file_path, @target_path, @message, @user)
end
end
end
assert_equal @repository.ontologies.first.name, 'Save_file'
end
end
end
end
setup do
@repository.save_file(@file_path, @target_path, @message, @user)
end
@repository.save_file(@file_path, @target_path, @message, @user)
end
teardown do
end
end
end
end
setup do
@files = {
}
@message = 'test message'
@file_path_prefix = '/tmp/ontohub/test/git_repository/'
@files.each do | path, content |
file_path = "#{@file_path_prefix}#{path}"
# create directory if it doesn't exist
end
# create file
if path == 'inroot2.clif'
end
else
end
end
end
end
teardown do
end
end
assert_equal [{
:type=>:dir,
:index=>0,
:ontologies => []
}], selected_entry
end
expected = {
type: :file_base,
}
expected = {
type: :file_base_ambiguous,
entries: [
]
}
end
@files.each do |path, content|
end
end
end
end
end
end
end
end