Change baseurl to example.com for some test cases

This commit is contained in:
Marcus Stollsteimer 2016-07-08 15:48:14 +02:00
parent f6dc749332
commit ba8573c420
1 changed files with 4 additions and 4 deletions

View File

@ -327,10 +327,10 @@ class TestConfiguration < JekyllUnitTest
allow(SafeYAML)
.to receive(:load_file)
.with(@paths[:other])
.and_return({ "baseurl" => "http://wahoo.dev" })
.and_return({ "baseurl" => "http://example.com" })
allow($stdout).to receive(:puts).with("Configuration file: #{@paths[:other]}")
assert_equal \
site_configuration({ "baseurl" => "http://wahoo.dev" }),
site_configuration({ "baseurl" => "http://example.com" }),
Jekyll.configuration(test_config.merge({ "config" => @paths[:other] }))
end
@ -378,7 +378,7 @@ class TestConfiguration < JekyllUnitTest
allow(SafeYAML)
.to receive(:load_file)
.with(@paths[:other])
.and_return({ "baseurl" => "http://wahoo.dev" })
.and_return({ "baseurl" => "http://example.com" })
allow($stdout)
.to receive(:puts)
.with("Configuration file: #{@paths[:default]}")
@ -386,7 +386,7 @@ class TestConfiguration < JekyllUnitTest
.to receive(:puts)
.with("Configuration file: #{@paths[:other]}")
assert_equal \
site_configuration({ "baseurl" => "http://wahoo.dev" }),
site_configuration({ "baseurl" => "http://example.com" }),
Jekyll.configuration(
test_config.merge({ "config" => [@paths[:default], @paths[:other]] })
)