Sha256: a54416f54b8870c42e365fd49584b0eadbb8f3ab98d63793bda36cdd6b19583d

Contents?: true

Size: 1.23 KB

Versions: 24

Compression:

Stored size: 1.23 KB

Contents

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

describe Merb::Generators::MerbStackGenerator do

  describe "templates" do

    before do
      @generator = Merb::Generators::MerbStackGenerator.new('/tmp', {}, 'testing')
    end

    it "should create config/init.rb" do
      @generator.should create('/tmp/testing/config/init.rb')
    end

    it "should create config/dependencies.rb" do
      @generator.should create('/tmp/testing/config/dependencies.rb')
    end

    it "should create config/database.yml" do
      @generator.should create('/tmp/testing/config/database.yml')
    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 have a gitignore file" do
      @generator.should create('/tmp/testing/.gitignore')
    end

    it "should have an htaccess file" do
      @generator.should create('/tmp/testing/public/.htaccess')
    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

24 entries across 24 versions & 1 rubygems

Version Path
merb-gen-1.0.15 spec/merb_stack_spec.rb
merb-gen-1.0.14 spec/merb_stack_spec.rb
merb-gen-1.0.13 spec/merb_stack_spec.rb
merb-gen-1.0.12 spec/merb_stack_spec.rb
merb-gen-0.9.12 spec/merb_stack_spec.rb
merb-gen-0.9.11 spec/merb_stack_spec.rb
merb-gen-0.9.10 spec/merb_stack_spec.rb
merb-gen-0.9.13 spec/merb_stack_spec.rb
merb-gen-0.9.9 spec/merb_stack_spec.rb
merb-gen-1.0.1 spec/merb_stack_spec.rb
merb-gen-1.0.10 spec/merb_stack_spec.rb
merb-gen-1.0.11 spec/merb_stack_spec.rb
merb-gen-1.0.2 spec/merb_stack_spec.rb
merb-gen-1.0.8.1 spec/merb_stack_spec.rb
merb-gen-1.0.3 spec/merb_stack_spec.rb
merb-gen-1.0.4 spec/merb_stack_spec.rb
merb-gen-1.0.5 spec/merb_stack_spec.rb
merb-gen-1.0.6 spec/merb_stack_spec.rb
merb-gen-1.0.6.1 spec/merb_stack_spec.rb
merb-gen-1.0.7 spec/merb_stack_spec.rb