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

Version Path
cantango-0.9.3.2 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9.5 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9.4 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9.3 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9.2 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9.1 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.9 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.8.1 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.8 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.7 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.6.2 spec/generators/cantango/install_generator_spec.rb
cantango-0.8.6.1 spec/generators/cantango/install_generator_spec.rb