mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
fix test to match new specs
This commit is contained in:
parent
cfd84286ab
commit
02b16907aa
@ -35,10 +35,7 @@ module Availabilities
|
|||||||
assert_not_nil availabilities[0][:machine], "first availability's machine was unexpectedly nil"
|
assert_not_nil availabilities[0][:machine], "first availability's machine was unexpectedly nil"
|
||||||
assert_equal m.id, availabilities[0][:machine][:id], "first availability's machine does not match the required machine"
|
assert_equal m.id, availabilities[0][:machine][:id], "first availability's machine does not match the required machine"
|
||||||
|
|
||||||
# Check that we din't get availabilities from the past
|
# as admin, we can get availabilities from the past (from v4.3.0)
|
||||||
availabilities.each do |a|
|
|
||||||
assert_not a[:start] < DateTime.current, 'retrieved a slot in the past'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'get calendar availabilities without spaces' do
|
test 'get calendar availabilities without spaces' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user