/
githubmirror
/
jekyll
Обзор
Документация
Войти
/
githubmirror
/
jekyll
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.9.4
test/test_command.rb
24 строки
664 B
Parker Moore
Enforce Style/FrozenStringLiteralComment. (#6265)
04 авг 2017, 04:27
04 авг 2017, 04:27
7cf5f51
Код
Авторство
О чём код?
# frozen_string_literal: true require "helper" class TestCommand < JekyllUnitTest context "when calling .add_build_options" do should "add common options" do cmd = Object.new mocks_expect(cmd).to receive(:option).at_least(:once) Command.add_build_options(cmd) end end context "when calling .process_site" do context "when fatal error occurs" do should "exit with non-zero error code" do site = Object.new def site.process; raise Jekyll::Errors::FatalException; end error = assert_raises(SystemExit) { Command.process_site(site) } refute_equal 0, error.status end end end end