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