Sha256: d1d8b8941ac2e24e4f7e9397a6bf56dcc122c958fd7f249bf698efee03f0ac21

Contents?: true

Size: 529 Bytes

Versions: 6

Compression:

Stored size: 529 Bytes

Contents

require '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

6 entries across 6 versions & 1 rubygems

Version Path
merb-gen-1.1.3 spec/layout_spec.rb
merb-gen-1.1.2 spec/layout_spec.rb
merb-gen-1.1.1 spec/layout_spec.rb
merb-gen-1.1.0 spec/layout_spec.rb
merb-gen-1.1.0.rc1 spec/layout_spec.rb
merb-gen-1.1.0.pre spec/layout_spec.rb