Sha256: e24ca8d99f23d98bd374d968878db199ad4e3d82f789092a4756ada1f0700357
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Gritano::Command do it 'should interpret git-receive-pack' do command = Gritano::Command.eval("git-receive-pack 'teste.git'") command[:access].to_s.should be == "write" command[:command].should be == "git-receive-pack" command[:repo].to_s.should be == "teste.git" end it 'should interpret git-upload-pack' do command = Gritano::Command.eval("git-upload-pack 'teste.git'") command[:access].to_s.should be == "read" command[:command].should be == "git-upload-pack" command[:repo].to_s.should be == "teste.git" end it 'should interpret repos' do command = Gritano::Command.eval("repos") command[:access].to_s.should be == "user_cmd" command[:command].should be == "repos" end it 'should interpret keys' do command = Gritano::Command.eval("keys") command[:access].to_s.should be == "user_cmd" command[:command].should be == "keys" end it 'should interpret addkey keyname' do command = Gritano::Command.eval("addkey keyname") command[:access].to_s.should be == "user_cmd" command[:command].should be == "addkey keyname" end it 'should interpret rmkey keyname' do command = Gritano::Command.eval("rmkey keyname") command[:access].to_s.should be == "user_cmd" command[:command].should be == "rmkey keyname" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gritano-0.3.2 | spec/command_spec.rb |
gritano-0.3.0 | spec/command_spec.rb |
gritano-0.2.2 | spec/command_spec.rb |