Sha256: d7b89e7d02ca6c4475806b22371ede1b55bd6f8f807a5c513b8411f57150e8b6
Contents?: true
Size: 731 Bytes
Versions: 9
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' require 'generators/genesis/contexts/contexts_generator' describe Genesis::ContextsGenerator do with_args 'test1' do it "should generate the db/seeds/test1 folder" do subject.should generate( 'db/seeds/contexts/test1' ) end end with_args 'test1,test2' do %w( db/seeds/contexts/test1 db/seeds/contexts/test2 ).each do |folder_path| it "should generate the #{folder_path} folder" do subject.should generate( folder_path ) end end end with_args '--help' do it "should ouput the correct description in the help message" do subject.should output( "Description:\n Generate one or more context folders." ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems