test/test_server_message.rb in unipept-2.2.1 vs test/test_server_message.rb in unipept-2.2.2
- old
+ new
@@ -77,16 +77,16 @@
assert(!server.recently_fetched?)
end
def test_old_recently_fetched
server = ServerMessage.new('http://api.unipept.ugent.be')
- server.configuration['last_fetch_date'] = Time.now - 60 * 60 * 25
+ server.configuration['last_fetch_date'] = Time.now - (60 * 60 * 25)
assert(!server.recently_fetched?)
end
def test_recently_recently_fetched
server = ServerMessage.new('http://api.unipept.ugent.be')
- server.configuration['last_fetch_date'] = Time.now - 60 * 60 * 1
+ server.configuration['last_fetch_date'] = Time.now - (60 * 60 * 1)
assert(server.recently_fetched?)
end
end
end