require_relative "spec_helper.rb" include GivenFilesystemSpecHelpers describe YSI::Engine do use_given_filesystem describe "#read_config" do it "reads valid configuration" do config = <= 6 ysi_standard.assertions.each_with_index do |assertion, i| expect(assertion.class).to eq(ysi.assertions[i].class) end end describe "#dependency_errored?" do it "returns true, if no dependency errored" do engine = YSI::Engine.new errored_assertions = [] assertion = YSI::ChangeLog.new(engine) expect(engine.dependency_errored?(assertion, errored_assertions)).to be(false) end it "returns false, if a dependency errored" do engine = YSI::Engine.new errored_assertions = [YSI::Version.new(engine)] assertion = YSI::ChangeLog.new(engine) expect(engine.dependency_errored?(assertion, errored_assertions)).to be(true) end end end