require_relative "../spec_helper.rb" describe YSI::ChangeLog do describe "checks content of change log" do it "when empty" do engine = YSI::Engine.new engine.version = "1.2.3" a = YSI::ChangeLog.new(engine) expect { a.check_content("") }.to raise_error("Can't find version 1.2.3 in change log") end it "when no version" do engine = YSI::Engine.new engine.version = "1.2.3" a = YSI::ChangeLog.new(engine) content = <