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.15 spec/layout_spec.rb
merb-gen-1.0.14 spec/layout_spec.rb
merb-gen-1.0.13 spec/layout_spec.rb
merb-gen-1.0.12 spec/layout_spec.rb
merb-gen-0.9.11 spec/layout_spec.rb
merb-gen-0.9.12 spec/layout_spec.rb
merb-gen-0.9.13 spec/layout_spec.rb
merb-gen-0.9.10 spec/layout_spec.rb
merb-gen-1.0.10 spec/layout_spec.rb
merb-gen-1.0.11 spec/layout_spec.rb
merb-gen-0.9.5 spec/layout_spec.rb
merb-gen-0.9.6 spec/layout_spec.rb
merb-gen-0.9.8 spec/layout_spec.rb
merb-gen-0.9.9 spec/layout_spec.rb
merb-gen-1.0.2 spec/layout_spec.rb
merb-gen-0.9.4 spec/layout_spec.rb
merb-gen-0.9.7 spec/layout_spec.rb
merb-gen-1.0.1 spec/layout_spec.rb
merb-gen-1.0.8.1 spec/layout_spec.rb
merb-gen-1.0.3 spec/layout_spec.rb