Sha256: 03f3af916ec2ed66520e039b9219a6be03312c009a8130bc66149b6c81658f49
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require 'spec_helper' describe Gurk::Cli do let(:sample_directory) { File.join(Dir.pwd, "spec", "support", "testapp") } before do FileUtils.rm_rf sample_directory ARGV.replace [] ARGV << sample_directory cli = Gurk::Cli.new ARGV cli.setup end describe "#setup" do it 'creates the app directory' do expect(File.exists?(sample_directory)).to be_true end it 'creates individual app files' do expect(File.exists?(File.join(sample_directory, 'config.ru'))).to be_true expect(File.exists?(File.join(sample_directory, 'app.rb'))).to be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gurk-0.0.1 | spec/gurk/cli_spec.rb |