Sha256: 665699e06931322bd0a3078213536ddae75cf1dfb634d6f38e4239551e014b86

Contents?: true

Size: 768 Bytes

Versions: 16

Compression:

Stored size: 768 Bytes

Contents

module Skellington
  describe CLI do
    let :subject do
      described_class.new
    end

    it 'has a version' do
      expect { subject.version }.to output(/^skellington version #{VERSION}$/).to_stdout
    end

    it 'generates correct output' do
      expect { subject.generate 'hyphenated-name' }.to output(/
Your new Sinatra app HyphenatedName has been created

\(Note that 'hyphenated-name' has been changed to 'hyphenated_name' because Ruby finds '-'s troubling\)

Now do

    cd hyphenated_name
    bundle
    bundle exec rake

And presuming that passes OK

    git add .
    git commit -m 'First commit'

You can run the app with

    bundle exec rackup
/).to_stdout

      expect(File).to exist 'hyphenated_name/lib/hyphenated_name.rb'
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
skellington-0.5.2 spec/hyphens_spec.rb
skellington-0.5.1 spec/hyphens_spec.rb
skellington-0.5.0 spec/hyphens_spec.rb
skellington-0.4.16 spec/hyphens_spec.rb
skellington-0.4.15 spec/hyphens_spec.rb
skellington-0.4.13 spec/hyphens_spec.rb
skellington-0.4.11 spec/hyphens_spec.rb
skellington-0.4.10 spec/hyphens_spec.rb
skellington-0.4.9 spec/hyphens_spec.rb
skellington-0.4.8 spec/hyphens_spec.rb
skellington-0.4.6 spec/hyphens_spec.rb
skellington-0.4.5 spec/hyphens_spec.rb
skellington-0.4.4 spec/hyphens_spec.rb
skellington-0.4.3 spec/hyphens_spec.rb
skellington-0.4.2 spec/hyphens_spec.rb
skellington-0.4.1 spec/hyphens_spec.rb