64. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/24/2018 2:23:59 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

64.1 Files compared

# Location File Last Modified
1 CUI-v2.5.0-release-source.zip\spec\requests\api\v1 claims_spec.rb Fri Mar 23 17:02:06 2018 UTC
2 CUI-v2.5.0-release-source.zip\spec\requests\api\v1 claims_spec.rb Wed May 16 15:51:04 2018 UTC

64.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 114
Changed 1 2
Inserted 0 0
Removed 0 0

64.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

64.4 Active regular expressions

No regular expressions were active.

64.5 Comparison detail

  1   require 'r ails_helpe r'
  2  
  3   RSpec.desc ribe "api/ v1/claims" , :type =>  :request  do
  4     before d o
  5       create (:hearing_ loss_evalu ation_spec )
  6       create (:elbow_an d_forearm_ evaluation _spec)
  7     end
  8  
  9     let(:exa mple_reque st_sample)  { File.op en('spec/s upport/exa m_request_ sample.xml ', 'rb').r ead }
  10  
  11  
  12     context  "when the  exam is as signed to  a user tha t is not c urrently i n the syst em" do
  13       it "sh ould creat e that use r and assi gn the exa m to them"
  14     end
  15  
  16     context  "when the  exam is as signed to  an existin g user" do
  17       before  do
  18           user = cre ate(:user,  first_nam e: "Mae",  last_name:  "Jemison" , email: " PII        ")
  19       end
  20  
  21       contex t "with xm l that has  a valid c laim, cont ention and  evaluatio ns" do
  22         it " returns a  created re sponse sta tus code"
  23  
  24         it " stores a h ash of the  exam_requ est data w ith the cl aim"
  25  
  26         it " creates a  claim for  an existin g user"
  27  
  28         it " creates a  contention  for an ex isting use r"
  29  
  30         it " does not c reate a ne w user" do
  31           ex pect { pos t api_v1_c laims_path , example_ request_sa mple,
  32                   {'CON TENT_TYPE'  => 'appli cation/xml '} }.not_t o change(U ser, :coun t)
  33         end
  34  
  35         it " should log  the ExamR equest"
  36  
  37         cont ext "when  there are  three eval uations de fined in t he xml, bu t only two  have CUI  evaluation  specs" do
  38           it  "creates  two evalua tions"
  39  
  40           it  "creates  four log e ntries"
  41         end
  42       end
  43     end
  44  
  45     context  "with inva lid xml" d o
  46       let(:i nvalid_xml ) { '<?xml  version=" 1.0" encod ing="UTF-8 " ?><feed  xmlns="htt p://www.w3 .org/2005/ Atom" xsi: schemaLoca tion="http ://www.w3. org/2005/A tom http:/ /vler.va.g ov/vler/sc hemas/atom /2005/vler /0.2/atom. xsd" xmlns :xsi="http ://www.w3. org/2001/X MLSchema-i nstance">
  47   </feed>' }
  48  
  49       it "re turns an u nprocessab le entity  response s tatus code "
  50  
  51       it "do es not cre ate a clai m" do
  52         expe ct { post  api_v1_cla ims_path,  invalid_xm l, {'CONTE NT_TYPE' = > 'applica tion/xml'}  }
  53                 .to_not  change(Cl aim, :coun t)
  54       end
  55  
  56       it "sh ould log a n error"
  57     end
  58   end