Merge pull request #4087 from XhmikosR/master
Trim trailing whitespace.
This commit is contained in:
commit
121a0471f2
|
@ -333,7 +333,7 @@ file, each document has the following attributes:
|
|||
|
||||
## Accessing Collection Attributes
|
||||
|
||||
Attributes from the YAML front matter can be accessed as data anywhere in the
|
||||
Attributes from the YAML front matter can be accessed as data anywhere in the
|
||||
site. Using the above example for configuring a collection as `site.albums`,
|
||||
one might have front matter in an individual file structured as follows (which
|
||||
must use a supported markup format, and cannot be saved with a `.yaml`
|
||||
|
|
|
@ -24,19 +24,19 @@ class TestLogAdapter < JekyllUnitTest
|
|||
subject.adjust_verbosity(:quiet => true)
|
||||
assert_equal Jekyll::LogAdapter::LOG_LEVELS[:error], subject.writer.level
|
||||
end
|
||||
|
||||
|
||||
should "set the writers logging level to debug when verbose" do
|
||||
subject = Jekyll::LogAdapter.new(LoggerDouble.new)
|
||||
subject.adjust_verbosity(:verbose => true)
|
||||
assert_equal Jekyll::LogAdapter::LOG_LEVELS[:debug], subject.writer.level
|
||||
end
|
||||
|
||||
|
||||
should "set the writers logging level to error when quiet and verbose are both set" do
|
||||
subject = Jekyll::LogAdapter.new(LoggerDouble.new)
|
||||
subject.adjust_verbosity(:quiet => true, :verbose => true)
|
||||
assert_equal Jekyll::LogAdapter::LOG_LEVELS[:error], subject.writer.level
|
||||
end
|
||||
|
||||
|
||||
should "not change the writer's logging level when neither verbose or quiet" do
|
||||
subject = Jekyll::LogAdapter.new(LoggerDouble.new)
|
||||
original_level = subject.writer.level
|
||||
|
@ -45,7 +45,7 @@ class TestLogAdapter < JekyllUnitTest
|
|||
subject.adjust_verbosity(:quiet => false, :verbose => false)
|
||||
assert_equal original_level, subject.writer.level
|
||||
end
|
||||
|
||||
|
||||
should "call #debug on writer return true" do
|
||||
writer = LoggerDouble.new
|
||||
logger = Jekyll::LogAdapter.new(writer)
|
||||
|
|
Loading…
Reference in New Issue