     template.form(dom, model: model, attributes: attrs)
     expect($('.jstree-clicked').parent().attr('node_value')).toBe("/GLAH01/Data_1HZ_VAL/Engineering/d_T_detID_VAL");
 
-  it "will render irrelevant nodes properly and not allow them to be selected", ->
-    model = """
-      <prov:treeReference type="tree">
-        <prov:data_layer></prov:data_layer>
-      </prov:treeReference>
-    """
-    children = """
-      <item value="irrelevantNode" relevant="false()"/>
-      <item value="relevantNode" relevant="true()"/>
-    """
-
-    form = template.form(dom, model: model, attributes: attrs, children: children)
-    $(":jstree li[node_value = '/irrelevantNode'] > a ").each ->
-      $(this).click()
-    $(":jstree li[node_value = '/relevantNode'] > a ").each ->
-      $(this).click()
-    expect($('.jstree-clicked').parent().attr('node_value')).not.toMatch("irrelevantNode");
-    expect($('.jstree-clicked').parent().attr('node_value')).toMatch("relevantNode");
-    expect(form.echoforms('serialize')).not.toMatch(/irrelevantNode/)
-    expect(form.echoforms('serialize')).toMatch(/relevantNode/)
-    expect($(":jstree li[node_value = '/irrelevantNode'] span.echoforms-help ").text()).toMatch("[not available]")
-    expect($(":jstree li[node_value = '/irrelevantNode'] i.jstree-icon")).toHaveClass("jstree-disabled-icon")
-    expect($(":jstree li[node_value = '/irrelevantNode']")).toHaveAttr("item-relevant","false")
+  describe "'irrelevant' nodes", ->
+    beforeEach ->
+      model = """
+        <prov:treeReference type="tree">
+          <prov:data_layer></prov:data_layer>
+        </prov:treeReference>
+      """
+      children = """
+        <item value="irrelevantNode" relevant="false()"/>
+        <item value="relevantNode" relevant="true()"/>
+      """
+      @form = template.form(dom, model: model, attributes: attrs, children: children)
+
+    it "does not allow irrelevant nodes to be selected", ->
+      $(":jstree li[node_value = '/irrelevantNode'] > a ").each ->
+        $(this).click()
+      $(":jstree li[node_value = '/relevantNode'] > a ").each ->
+        $(this).click()
+      expect($('.jstree-clicked').parent().attr('node_value')).not.toMatch("irrelevantNode");
+      expect($('.jstree-clicked').parent().attr('node_value')).toMatch("relevantNode");
+      expect(@form.echoforms('serialize')).not.toMatch(/irrelevantNode/)
+      expect(@form.echoforms('serialize')).toMatch(/relevantNode/)
+
+    it "displays a '[not available]' message", ->
+      expect($(":jstree li[node_value = '/irrelevantNode'] span.echoforms-help ").text()).toMatch("[not available]")
+
+    it "removes the checkbox", ->
+      expect($(":jstree li[node_value = '/irrelevantNode'] i.jstree-icon")).not.toHaveClass("jstree-checkbox")
+
+    it "adds a check mark icon", ->
+      expect($(":jstree li[node_value = '/irrelevantNode'] i.jstree-icon")).toHaveClass("jstree-disabled-icon")
+
+    it "sets the item-relevant attribute to false", ->
+      expect($(":jstree li[node_value = '/irrelevantNode']")).toHaveAttr("item-relevant","false")
 
   it "excludes from output any preselected nodes which are not relevant", ->
     model = """

        <prov:data_layer>Engineering</prov:data_layer>
      </prov:treeReference>
    """
    it "should add the provided value to the model if no separator specified", ->
      attrs = 'ref="prov:treeReference" valueElementName="data_layer" cascade="false"'
      form = template.form(dom, model: model, attributes: attrs)
      expect($('.jstree-clicked').size()).toEqual(1)

      expect($($('.jstree-clicked')[0]).parent().attr('node_value')).toBe("/value_with_label");
      expect($($('.jstree-clicked')[1]).parent().attr('node_value')).toBe("/value_with_no_label");
      expect(form.echoforms('serialize')).toMatch(/value_with_label/)
      expect(form.echoforms('serialize')).toMatch(/value_with_no_label/)