Skip to content

Commit e8f81dd

Browse files
No extra empty line detected at block body beginning/end.
1 parent d0016ca commit e8f81dd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spec/html-proofer/cache_spec.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ def read_cache(cache_file)
110110

111111
context 'within date' do
112112
let(:cache_file_name) { '.within_date.log' }
113-
114113
it 'does not write file if timestamp is within date' do
115-
116114
expect_any_instance_of(HTMLProofer::Cache).to receive(:write)
117115

118116
# we expect no add...
@@ -122,15 +120,12 @@ def read_cache(cache_file)
122120
expect_any_instance_of(HTMLProofer::Cache).to receive(:within_timeframe?).and_return(within)
123121

124122
run_proofer(['www.github.com'], :links, cache: { timeframe: '30d', cache_file: cache_file_name }.merge(default_cache_options))
125-
126123
end
127124
end
128125

129126
context 'not within date' do
130127
let(:cache_file_name) { '.not_within_date.log' }
131-
132128
it 'does write file if timestamp is not within date' do
133-
134129
# mock within_timeframe
135130
expect_any_instance_of(HTMLProofer::Cache).to receive(:write)
136131

@@ -141,13 +136,11 @@ def read_cache(cache_file)
141136
expect_any_instance_of(HTMLProofer::Cache).to receive(:within_timeframe?).and_return(within)
142137

143138
run_proofer(['www.github.com'], :links, cache: { timeframe: '4d', cache_file: cache_file_name }.merge(default_cache_options))
144-
145139
end
146140
end
147141

148142
context 'new url added' do
149143
let(:cache_file_name) { '.new_url.log' }
150-
151144
it 'does write file if a new URL is added' do
152145
# this is frozen to within 7 days of the log
153146
new_time = Time.local(2015, 10, 20, 12, 0, 0)
@@ -166,9 +159,7 @@ def read_cache(cache_file)
166159

167160
context 'recheck failure' do
168161
let(:cache_file_name) { '.recheck_failure.log' }
169-
170162
it 'does recheck failures, regardless of cache' do
171-
172163
expect_any_instance_of(HTMLProofer::Cache).to receive(:write)
173164

174165
# we expect the same link to be readded...
@@ -178,7 +169,6 @@ def read_cache(cache_file)
178169
expect_any_instance_of(HTMLProofer::Cache).to receive(:within_timeframe?).and_return(within)
179170

180171
run_proofer(['http://www.foofoofoo.biz'], :links, cache: { timeframe: '30d', cache_file: cache_file_name }.merge(default_cache_options))
181-
182172
end
183173
end
184174
end

0 commit comments

Comments
 (0)