Sha256: 9d86400635b02a222bf74c0d62bb67eb69d2153d533b7ce679b6b881417d0565

Contents?: true

Size: 588 Bytes

Versions: 29

Compression:

Stored size: 588 Bytes

Contents

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

describe Merb::Generators::ResourceGenerator do
  
  before do
    @generator = Merb::Generators::ResourceGenerator.new('/tmp', {}, 'Project', { :name => :string })
  end
  
  it "should invoke the resource controller generator with the pluralized name" do
    @generator.should invoke(Merb::Generators::ResourceControllerGenerator).with('Projects', { :name => :string })

  end
  
  it "should invoke the model generator" do
    @generator.should invoke(Merb::Generators::ModelGenerator).with('Project', { :name => :string })
  end
  
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
merb-gen-1.0.15 spec/resource_spec.rb
merb-gen-1.0.14 spec/resource_spec.rb
merb-gen-1.0.13 spec/resource_spec.rb
merb-gen-1.0.12 spec/resource_spec.rb
merb-gen-0.9.13 spec/resource_spec.rb
merb-gen-0.9.11 spec/resource_spec.rb
merb-gen-0.9.10 spec/resource_spec.rb
merb-gen-0.9.12 spec/resource_spec.rb
merb-gen-0.9.4 spec/resource_spec.rb
merb-gen-0.9.5 spec/resource_spec.rb
merb-gen-1.0.10 spec/resource_spec.rb
merb-gen-0.9.6 spec/resource_spec.rb
merb-gen-0.9.7 spec/resource_spec.rb
merb-gen-0.9.8 spec/resource_spec.rb
merb-gen-0.9.9 spec/resource_spec.rb
merb-gen-1.0.1 spec/resource_spec.rb
merb-gen-1.0.11 spec/resource_spec.rb
merb-gen-1.0.2 spec/resource_spec.rb
merb-gen-1.0.8 spec/resource_spec.rb
merb-gen-1.0.7.1 spec/resource_spec.rb