Sha256: 6a066971ebf98bc92f89598f60430a378307665841a50a36bc29f80bcf568c08

Contents?: true

Size: 507 Bytes

Versions: 7

Compression:

Stored size: 507 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::Generator do
  before(:each) do
    options = {
      cwd: "tmp",
      name: "hello"
    }
    @generator = ThorTemplate::Generator.new(options)
  end

  it "should generate" do
    @generator.run
    expect(File.exist?("hello")).to be_truthy
    expect(File.exist?("hello/hello.gemspec")).to be_truthy
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thor_template-2.2.1 spec/lib/generator_spec.rb
thor_template-2.2.0 spec/lib/generator_spec.rb
thor_template-2.1.1 spec/lib/generator_spec.rb
thor_template-2.1.0 spec/lib/generator_spec.rb
thor_template-2.0.2 spec/lib/generator_spec.rb
thor_template-2.0.1 spec/lib/generator_spec.rb
thor_template-2.0.0 spec/lib/generator_spec.rb