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