replace `assert false, ...` with `refute`

This commit is contained in:
Florian Thomas 2016-08-07 20:54:22 +02:00
parent d158d73ce1
commit 539154a158
No known key found for this signature in database
GPG Key ID: FCEEC9743EC7B893
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ class TestPluginManager < JekyllUnitTest
context "JEKYLL_NO_BUNDLER_REQUIRE set to `true`" do
should "not require from bundler" 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"
assert ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
end
@ -32,7 +32,7 @@ class TestPluginManager < JekyllUnitTest
should "not require from bundler" do
with_env("JEKYLL_NO_BUNDLER_REQUIRE", nil) 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"
assert_nil ENV["JEKYLL_NO_BUNDLER_REQUIRE"]
end