Sha256: 9608b83899955ff886cacd4a3f5441a9a74d86de3081c93953a342f087285427

Contents?: true

Size: 930 Bytes

Versions: 6

Compression:

Stored size: 930 Bytes

Contents

require 'spec_helper'

describe Merb::Generators::SliceGenerator do
  
  it "should invoke the full generator by default" do
    generator = Merb::Generators::SliceGenerator.new('/tmp', { :pretend => true }, 'testing')
    #generator.invoke!
    generator.invocations.first.class.should == Merb::Generators::FullSliceGenerator
  end
  
  it "should invoke the flat generator if --thin is set" do
    generator = Merb::Generators::SliceGenerator.new('/tmp', { :pretend => true, :thin => true }, 'testing')
    #generator.invoke!
    generator.invocations.first.class.should == Merb::Generators::ThinSliceGenerator
  end
  
  it "should invoke the very flat generator if --very-thin is set" do
    generator = Merb::Generators::SliceGenerator.new('/tmp', { :pretend => true, :very_thin => true }, 'testing')
    #generator.invoke!
    generator.invocations.first.class.should == Merb::Generators::VeryThinSliceGenerator
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merb-slices-1.1.3 spec/slice_generator_spec.rb
merb-slices-1.1.2 spec/slice_generator_spec.rb
merb-slices-1.1.1 spec/slice_generator_spec.rb
merb-slices-1.1.0 spec/slice_generator_spec.rb
merb-slices-1.1.0.rc1 spec/slice_generator_spec.rb
merb-slices-1.1.0.pre spec/slice_generator_spec.rb