Sha256: 0f6b931a18a68bea6ddf0d3fe8dc6d4bbeb9457023c419dce312b6c98cca6a67
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Merb::Generators::MerbGenerator do describe "templates" do before do @generator = Merb::Generators::MerbGenerator.new('/tmp', {}, 'testing') end it "should have an init.rb" do template = @generator.template(:config_init_rb) template.destination.should == '/tmp/testing/config/init.rb' end it "should have an application controller" do template = @generator.template(:app_controllers_application_rb) template.destination.should == '/tmp/testing/app/controllers/application.rb' end it "should have an exceptions controller" do template = @generator.template(:app_controllers_exceptions_rb) template.destination.should == '/tmp/testing/app/controllers/exceptions.rb' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thorero-gen-0.9.4 | spec/merb_spec.rb |