mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
14 lines
303 B
Ruby
14 lines
303 B
Ruby
class AvailabilitiesTest < ActionDispatch::IntegrationTest
|
|
setup do
|
|
admin = User.with_role(:admin).first
|
|
login_as(admin, scope: :user)
|
|
end
|
|
|
|
test "return availability by id" do
|
|
a = Availability.take
|
|
|
|
get "/api/availabilities/#{a.id}"
|
|
assert_equal 200, response.status
|
|
end
|
|
end
|