repository_test.rb revision 3ed9f3432cfe7d1b8b52128c84a105a20b0e967f
require 'test_helper'
context "a repository" do
setup do
end
teardown do
end
context 'saving a file' do
setup do
@message = 'test message'
@content = "(Cat x)\n"
# create directory if it doesn't exist
end
# create file
end
should 'not have an ontology yet' do
end
context "that doesn't exist" do
setup do
end
should 'create the file in the git repository' do
end
should 'create the file with correct contents in the git repository' do
end
should 'create a new ontology with a default name' do
end
should 'create a new ontology with only one version pointing to the commit' do
end
should 'create a new ontology with only one version belonging to the right user' do
end
end
context 'that exists' do
setup do
end
end
teardown do
end
should 'create a new ontology version' do
end
end
end
end
end