Sha256: 10cc7830896cd946785247e7732605c396143974d3c33e97289b259ba0ec5d37
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 Bytes
Contents
require '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
6 entries across 6 versions & 1 rubygems