Sha256: 1d9079c2d7199f99d7b7643fab01d0c2c9369204f092765d3876744620e3d360

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 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 "USER_PROVIDED_NAME" do
    it "should hello world" do
      out = execute("exe/USER_PROVIDED_NAME hello world #{@args}")
      expect(out).to include("from: Tung\nHello world")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thor_template-2.2.1 lib/starter_project/spec/lib/cli_spec.rb
thor_template-2.2.0 lib/starter_project/spec/lib/cli_spec.rb
thor_template-2.1.1 lib/starter_project/spec/lib/cli_spec.rb
thor_template-2.1.0 lib/starter_project/spec/lib/cli_spec.rb