Sha256: d2a7d0d371f8344dffd1f3dff963035179c4318c43ee11286a1d8b5858da391f

Contents?: true

Size: 681 Bytes

Versions: 20

Compression:

Stored size: 681 Bytes

Contents

require File.dirname(__FILE__) + '/generator_spec_helper'

describe Rhogen::SourceGenerator do
  
  source_name = 'NeatSource'

  it "should complain if no name is specified" do
    lambda {
      @generator = Rhogen::SourceGenerator.new('/tmp', {})
    }.should raise_error(::Templater::TooFewArgumentsError)
  end
  
  before do
    @generator = Rhogen::SourceGenerator.new('/tmp', {}, source_name)
  end
  
  it "should create neat_source.rb files" do
    ['neat_source.rb'].each do |template|
      @generator.should create("/tmp/lib/#{template}")
    end
  end
  
  it "should generate valid erb templates" do
    pending "need to figure out how to validate erb"
  end
  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rhodes-1.5.5 spec/generator_spec/source_generator_spec.rb
rhodes-1.5.4 spec/generator_spec/source_generator_spec.rb
rhodes-1.5.3 spec/generator_spec/source_generator_spec.rb
rhodes-1.5.2 spec/generator_spec/source_generator_spec.rb
rhodes-1.5.1 spec/generator_spec/source_generator_spec.rb
rhodes-1.5.0 spec/generator_spec/source_generator_spec.rb
rhodes-1.4.2 spec/generator_spec/source_generator_spec.rb
rhodes-1.4.1 spec/generator_spec/source_generator_spec.rb
rhodes-1.4.0 spec/generator_spec/source_generator_spec.rb
rhodes-1.2.2 spec/source_generator_spec.rb
rhodes-0.2.1 spec/source_generator_spec.rb
rhodes-0.1.3 spec/source_generator_spec.rb
rhodes-0.2.0 spec/source_generator_spec.rb
rhodes-0.1.2 spec/source_generator_spec.rb
rhodes-0.2.4 spec/source_generator_spec.rb
rhodes-0.2.3 spec/source_generator_spec.rb
rhodes-0.2.2 spec/source_generator_spec.rb
rhodes-0.2.5 spec/source_generator_spec.rb
rhodes-0.2.6 spec/source_generator_spec.rb
rhodes-0.3.0 spec/source_generator_spec.rb