replace `assert false, ...` with `refute`
This commit is contained in:
parent
d158d73ce1
commit
539154a158
|
@ -21,7 +21,7 @@ class TestPluginManager < JekyllUnitTest
|
||||||
context "JEKYLL_NO_BUNDLER_REQUIRE set to `true`" do
|
context "JEKYLL_NO_BUNDLER_REQUIRE set to `true`" do
|
||||||
should "not require from bundler" do
|
should "not require from bundler" do
|
||||||
with_env("JEKYLL_NO_BUNDLER_REQUIRE", "true") do
|
with_env("JEKYLL_NO_BUNDLER_REQUIRE", "true") do
|
||||||
assert_equal false, Jekyll::PluginManager.require_from_bundler,
|
refute Jekyll::PluginManager.require_from_bundler,
|
||||||
"Gemfile plugins were required but shouldn't have been"
|
"Gemfile plugins were required but shouldn't have been"
|
||||||
assert ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
|
assert ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
|
||||||
end
|
end
|
||||||
|
@ -32,7 +32,7 @@ class TestPluginManager < JekyllUnitTest
|
||||||
should "not require from bundler" do
|
should "not require from bundler" do
|
||||||
with_env("JEKYLL_NO_BUNDLER_REQUIRE", nil) do
|
with_env("JEKYLL_NO_BUNDLER_REQUIRE", nil) do
|
||||||
with_no_gemfile do
|
with_no_gemfile do
|
||||||
assert_equal false, Jekyll::PluginManager.require_from_bundler,
|
refute Jekyll::PluginManager.require_from_bundler,
|
||||||
"Gemfile plugins were required but shouldn't have been"
|
"Gemfile plugins were required but shouldn't have been"
|
||||||
assert_nil ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
|
assert_nil ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue