File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
3
- require ' chemistrykit/cli'
3
+ require_relative '../lib/ chemistrykit/cli'
4
4
5
5
ChemistryKit ::CLI . start
Original file line number Diff line number Diff line change 1
1
require "thor"
2
2
3
- class MyCLI < Thor
4
- desc "ckit new <project_name>" , "Creates a new ChemistryKit project"
5
- def new ( project )
6
- puts "Yeah, your ready to rock out #{ project } !"
3
+ module ChemistryKit
4
+ class CLI < Thor
5
+ desc "ckit new <project_name>" , "Creates a new ChemistryKit project"
6
+ def new
7
+ puts "new"
8
+ end
7
9
end
8
10
end
9
-
10
- MyCLI . start ( ARGV )
Original file line number Diff line number Diff line change 1
1
module ChemistryKit
2
- describe 'chemistrykit executable' do
3
- it 'returns non-zero exit status when passed unrecognized options' do
4
- true
5
- # ckit '--invalid_argument', :exitstatus => true
6
- # expext(exitstatus.to_not be_zero
2
+ describe CLI do
3
+ it "should return new project" do
4
+ cli = ChemistryKit :: CLI . start
5
+ new = CLI . new
6
+ new = "new"
7
7
end
8
8
end
9
9
end
You can’t perform that action at this time.
0 commit comments