Sha256: 2dee90ef8cca45294626bc9f2a68c54d759e12e5955215ef69561f246e23dd3f
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' require 'rail/generator' RSpec.describe Rail::Generator do let(:destination) { 'project' } subject { described_class.new(destination: destination) } describe '#run' do it 'raises an exception if the destination folder already exists' do expect(File).to receive(:directory?).and_return(true) expect { subject.run }.to raise_error(ArgumentError) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rail-0.1.1 | spec/lib/rail/generator_spec.rb |
rail-0.1.0 | spec/lib/rail/generator_spec.rb |
rail-0.0.8 | spec/lib/rail/generator_spec.rb |