Sha256: 06ab8e423afea10b3c4e182c9080799c5edc295dba00f6614b6f77e3633655f2

Contents?: true

Size: 557 Bytes

Versions: 7

Compression:

Stored size: 557 Bytes

Contents

# -*- encoding : utf-8 -*-

RSpec.describe Card::Mod::Loader::SetPatternLoader do
  let(:mod_dirs) do
    path = File.expand_path "../../../../../support/test_mods", __FILE__
    puts path
    Card::Mod::Dirs.new path
  end

  it 'initializes the load strategy' do
    expect(Card::Mod::LoadStrategy::Eval).to receive(:new).with(mod_dirs, instance_of(described_class))
    described_class.new :eval, mod_dirs
  end

  it "load mods" do
    described_class.new(:eval, mod_dirs).load
    expect(Card::Set.const_defined?("TestPattern")).to be_truthy
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
card-1.93.3 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.93.2 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.93.1 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.93.0 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.92.2 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.92.1 spec/lib/card/mod/loader/set_pattern_loader_spec.rb
card-1.92 spec/lib/card/mod/loader/set_pattern_loader_spec.rb