3 class DisabledApiTest < ActiveSupport::TestCase
4 test 'Job.creatable? reflects whether jobs.create API is enabled' do
8 dd = ArvadosApiClient.new_or_current.discovery.deep_dup
9 dd[:resources][:jobs][:methods].delete(:create)
10 ArvadosApiClient.any_instance.stubs(:discovery).returns(dd)
12 refute(Job.creatable?)