Sha256: ad0669861b1c8acb6c11f53d6a2faea8727e7c2cbb3243972bcdcc6e60e966b4
Contents?: true
Size: 705 Bytes
Versions: 13
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Pagoda::Command::Base do before :all do @base = Pagoda::Command::Base.new({},{},[]) end it "returns the remote given" do @base = Pagoda::Command::Base.new({},{:remote => "notpagoda"},[]) @base.remote.should == "notpagoda" end it "returns a default remote" do @base.remote.should == "pagoda" end it "can gather an application name from anywhere" do glob = Pagoda::Command::Base.new({:app => "appname"},{},[]) opt = Pagoda::Command::Base.new({},{:app => "appnamo"},[]) arg = Pagoda::Command::Base.new({},{},["appnama"]) glob.app.should == "appname" opt.app.should == "appnamo" arg.app.should == "appnama" end end
Version data entries
13 entries across 13 versions & 1 rubygems