1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00
fab-manager/test/integration/availabilities_test.rb
2016-04-05 12:28:42 +02:00

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