Sha256: 74a819f6ba9c3503f41bef0506959ea6f8cc3e72f9aa0473f5e72268891eb05c

Contents?: true

Size: 811 Bytes

Versions: 5

Compression:

Stored size: 811 Bytes

Contents

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

describe Merb::Generators::MerbFullGenerator do
  
  describe "templates" do
    
    before do
      @generator = Merb::Generators::MerbFullGenerator.new('/tmp', {}, 'testing')
    end
    
    it "should create an init.rb" do
      @generator.should create('/tmp/testing/config/init.rb')
    end
    
    it "should have an application controller" do
      @generator.should create('/tmp/testing/app/controllers/application.rb')
    end
    
    it "should have an exceptions controller" do
      @generator.should create('/tmp/testing/app/controllers/exceptions.rb')
    end
    
    it "should create a number of views"
    
    it "should render templates successfully" do
      lambda { @generator.render! }.should_not raise_error
    end
    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
merb-gen-0.9.4 spec/merb_full_spec.rb
merb-gen-0.9.8 spec/merb_full_spec.rb
merb-gen-0.9.5 spec/merb_full_spec.rb
merb-gen-0.9.6 spec/merb_full_spec.rb
merb-gen-0.9.7 spec/merb_full_spec.rb