Sha256: 422294db7bae3288ab12db9b17e9576b93069512726510efe5d309156850b5d1

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 Bytes

Contents

require 'spec/spec_helper'
require 'spec/spec_generator_helper'
require 'rubygems'
require 'fileutils'
require 'taza'

describe "Step Generation" do
  include RubiGen::GeneratorTestHelper
  include Helpers::Generator
  include Helpers::Taza

  before :each do
    generate_project
  end

  after :each do
    bare_teardown   
  end

  it "should give you usage if you provide no arguments" do
    lambda { run_generator('steps', [], generator_sources) }.
      should raise_error(RubiGen::UsageError)
  end
  
   it "should be able to generate a steps file" do
    lambda{run_generator('steps', ['simple'], generator_sources)}.
      should_not raise_error
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bret-watircraft-0.4.0 spec/steps_generator_spec.rb
bret-watircraft-0.4.1 spec/steps_generator_spec.rb
bret-watircraft-0.4.2 spec/steps_generator_spec.rb
bret-watircraft-0.4.3 spec/steps_generator_spec.rb
bret-watircraft-0.4.4 spec/steps_generator_spec.rb
bret-watircraft-0.4.5 spec/steps_generator_spec.rb
bret-watircraft-0.5.0 spec/steps_generator_spec.rb