Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ef9b391417
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (24 sloc) 0.657 kb
require File.dirname(__FILE__)+'/../lib/dubious/cli'
describe Dubious::CLI do
before :each do
FileUtils.rm_rf 'spec/temp'
Dir.mkdir 'spec/temp'
end
describe "subcommands" do
subject { Dubious::CLI::Main.subcommands }
it { should include 'new' }
it { should include 'generate' }
end
describe Dubious::CLI::Generator do
it 'expects a name' do
lambda {
Dubious::CLI::Generator.new
}.should raise_error
end
describe "#model" do
it '...' do
Dubious::CLI::Generator.new(['something']).tap{|g|g.destination_root=File.dirname(__FILE__)+'/temp'}.model
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.