Sha256: 3f08c1161e352ffe62a449efa00bf815cd7950f01824eebb2a9020e8c4e27abc

Contents?: true

Size: 1.72 KB

Versions: 11

Compression:

Stored size: 1.72 KB

Contents

require File.dirname(__FILE__) + '/../unit_test_helper'
require 'ceedling/setupinator'


class SetupinatorTest < Test::Unit::TestCase

  def setup
    objects = create_mocks(:project_config_manager, :configurator, :test_includes_extractor, :plugin_manager, :file_finder)
    create_mocks(:config_hash, :system_objects)
    @setupinator = Setupinator.new(objects)
  end

  def teardown
  end
  
  
  should "perform all post-instantiation setup steps" do
    @project_config_manager.expects.find_project_files
    @project_config_manager.expects.load_project_config.returns(@config_hash)

    @configurator.expects.populate_plugins_defaults(@config_hash)
    @configurator.expects.standardize_paths(@config_hash)
    @configurator.expects.validate(@config_hash)
    @configurator.expects.populate_cmock_defaults(@config_hash)
    @configurator.expects.find_and_merge_plugins(@config_hash)
    @configurator.expects.build(@config_hash)
    
    @configurator.expects.rake_plugins.returns(['plugins/ext1/ext1.rake', 'plugins/ext2/ext2.rake'])
    @configurator.expects.insert_rake_plugins(['plugins/ext1/ext1.rake', 'plugins/ext2/ext2.rake'])
    
    @configurator.expects.script_plugins.returns(['plugins/ext2/ext2.rb', 'plugins/ext3/ext3.rb'])
    @plugin_manager.expects.load_plugin_scripts(['plugins/ext2/ext2.rb', 'plugins/ext3/ext3.rb'], @system_objects)
    
    @configurator.expects.cmock_mock_prefix.returns('Mock')
    @test_includes_extractor.expects.cmock_mock_prefix=('Mock')
    
    @configurator.expects.extension_header.returns('.h')
    @test_includes_extractor.expects.extension_header=('.h')

    @file_finder.expects.prepare_search_sources

    @setupinator.do_setup(@system_objects)
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ceedling-0.19.0 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.18.0 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.17.0 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.16.0 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.6 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.5 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.4 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.3 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.2 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.1 test_graveyard/unit/busted/setupinator_test.rb
ceedling-0.15.0 test_graveyard/unit/busted/setupinator_test.rb