Sha256: 91db2fcb6b7036574b714981cfb5ed29053c1386d678cd109a3508f1b1435b58
Contents?: true
Size: 1.8 KB
Versions: 5
Compression:
Stored size: 1.8 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Gritano::Console do it "should respond to gritano user add igorbonadio" do console = Gritano::Console.new console.should_receive(:user_add) console.execute("user add igorbonadio".split(' ')) end it "should respond to gritano user rm igorbonadio" do console = Gritano::Console.new console.should_receive(:user_rm) console.execute("user rm igorbonadio".split(' ')) end it "should respond to gritano repo add tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_add) console.execute("repo add tmp/reponame.git".split(' ')) end it "should respond to gritano repo rm tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_rm) console.execute("repo rm tmp/reponame.git".split(' ')) end it "should respond to gritano repo +read igorbonadio tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_add_read) console.execute("repo +read igorbonadio tmp/reponame.git".split(' ')) end it "should respond to gritano repo +write igorbonadio tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_add_write) console.execute("repo +write igorbonadio tmp/reponame.git".split(' ')) end it "should respond to gritano repo -read igorbonadio tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_remove_read) console.execute("repo -read igorbonadio tmp/reponame.git".split(' ')) end it "should respond to gritano repo -write igorbonadio tmp/reponame.git" do console = Gritano::Console.new console.should_receive(:repo_remove_write) console.execute("repo -write igorbonadio tmp/reponame.git".split(' ')) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gritano-0.1.6 | spec/console_spec.rb |
gritano-0.1.5 | spec/console_spec.rb |
gritano-0.1.4 | spec/console_spec.rb |
gritano-0.1.3 | spec/console_spec.rb |
gritano-0.1.2 | spec/console_spec.rb |