 
   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", ->

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

//= require jasmine-jquery
//= require disable_checker

fixtureHtml = (isChecked) ->
  if isChecked
    checked = 'checked="checked"'
  else
