Sha256: 97ade3d4f6d8c2eedef724ea3bbd592da954e5b08c7337b7930af53e18166a3d

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'

# to run specs with what's remembered from vcr
#   $ rake
# 
# to run specs with new fresh data from aws api calls
#   $ rake clean:vcr ; time rake
describe ThorTemplate::CLI do
  before(:all) do
    @args = "--from Tung"
  end

  describe "thor_template" do
    it "should hello world" do
      out = execute("bin/thor_template hello world #{@args}")
      expect(out).to include("from: Tung\nHello world")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thor_template-1.0.1 lib/starter_project/spec/lib/cli_spec.rb
thor_template-1.0.0 lib/starter_project/spec/lib/cli_spec.rb
thor_template-0.0.8 lib/starter_project/spec/lib/cli_spec.rb
thor_template-0.0.7 lib/starter_project/spec/lib/cli_spec.rb
thor_template-0.0.6 lib/starter_project/spec/lib/cli_spec.rb
thor_template-0.0.5 lib/starter_project/spec/lib/cli_spec.rb