 
   describe "when checkbox not checked", ->
     beforeEach ->
-      inputId = "defence_request_appropriate_adult_reason"
-      element = fixtureHtml(inputId, false)
-      fixtureSetup(element, inputId, this)
+      element = fixtureHtml(false)
+      fixtureSetup(element, this)
 
     describe "after initialization", ->
       it "leaves input enabled", ->

  </body>
  """)

fixtureSetup = (element, inputId, context) ->
  $(document.body).append(element)

  context.disableCheckbox = $("#defence_request_detainee_name_not_given")

  describe "when radio checked", ->
    describe "after initialization", ->
      it "disables input", ->
        element = fixtureHtml(true)
        fixtureSetup(element, this)
        expect(@inputToDisable).toBeDisabled()
