Sha256: 48ea24e0eebb4c5a93a410ccdd3153ef6dc08654c79b306d50dc5b3841ec6b82

Contents?: true

Size: 555 Bytes

Versions: 29

Compression:

Stored size: 555 Bytes

Contents

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

describe Merb::Generators::LayoutGenerator do

  before(:each) do
    @generator = Merb::Generators::LayoutGenerator.new('/tmp', {}, 'Stuff')
  end
  
  it_should_behave_like "named generator"
  
  it "should create a layout" do
    @generator.should create('/tmp/app/views/layout/stuff.html.erb')
  end
  
  describe "with rspec" do
    
    it "should create a view spec"
    
  end
  
  it "should render templates successfully" do
    lambda { @generator.render! }.should_not raise_error
  end
    
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
merb-gen-1.0.4 spec/layout_spec.rb
merb-gen-1.0.5 spec/layout_spec.rb
merb-gen-1.0.6 spec/layout_spec.rb
merb-gen-1.0.6.1 spec/layout_spec.rb
merb-gen-1.0.7 spec/layout_spec.rb
merb-gen-1.0.7.1 spec/layout_spec.rb
merb-gen-1.0.8 spec/layout_spec.rb
merb-gen-1.0.9 spec/layout_spec.rb
merb-gen-1.0 spec/layout_spec.rb