Skip to content

Commit a944223

Browse files
committedDec 19, 2012
renamed executable from chemistrykit to ckit, misc non-working changes to cli interface and tests
1 parent d9e5e07 commit a944223

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
 

‎bin/chemistrykit ‎bin/ckit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
22

3-
require 'chemistrykit/cli'
3+
require_relative '../lib/chemistrykit/cli'
44

55
ChemistryKit::CLI.start

‎lib/chemistrykit/cli.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
require "thor"
22

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
79
end
810
end
9-
10-
MyCLI.start(ARGV)

‎spec/chemistrykit/cli_spec.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
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"
77
end
88
end
99
end

0 commit comments

Comments
 (0)