Sha256: 0811dd74e2cbc0f6ee02290623eb47c96f44e0c86508011e5fdbe6e3c0fd8eec
Contents?: true
Size: 1.02 KB
Versions: 32
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' require 'generator-spec' # require 'generators/cantango/install/install_generator' require_generator :cantango => :install RSpec::Generator.configure do |config| config.debug = true config.remove_temp_dir = false config.default_rails_root(__FILE__) config.lib = File.dirname(__FILE__) + '/../lib' config.logger = :stdout # :file end describe Cantango::Generators::InstallGenerator do use_helpers :special, :file setup_generator :permit do tests Cantango::Generators::InstallGenerator end describe 'Run Install generator' do before :each do @gen_result = with_generator do |g| g.run_generator end end describe 'result of running Install generator' do it "should create config files" do @gen_result.should have_initializer_file :cantango do |file| file.should have_content /engines/ end @gen_result.should have_config_file :categories @gen_result.should have_config_file :permissions end end end end
Version data entries
32 entries across 32 versions & 2 rubygems