155. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/21/2018 6:58:15 AM Central Standard 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.

155.1 Files compared

# Location File Last Modified
1 CUI-CPP-v2.4.0-source-archive.zip\spec\factories users.rb Thu Dec 21 03:33:17 2017 UTC
2 CUI-CPP-v2.4.0-source-archive.zip\spec\factories users.rb Tue Feb 13 14:03:13 2018 UTC

155.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 170
Changed 7 22
Inserted 0 0
Removed 0 0

155.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

155.4 Active regular expressions

No regular expressions were active.

155.5 Comparison detail

  1   # == Schem a Informat ion
  2   #
  3   # Table na me: users
  4   #
  5   #  id                       :int eger           not nu ll, primar y key
  6   #  email                    :str ing            defaul t(""), not  null
  7   #  encrypt ed_passwor d     :str ing            defaul t(""), not  null
  8   #  reset_p assword_to ken   :str ing
  9   #  reset_p assword_se nt_at :dat etime
  10   #  remembe r_created_ at    :dat etime
  11   #  sign_in _count           :int eger           defaul t(0), not  null
  12   #  current _sign_in_a t     :dat etime
  13   #  last_si gn_in_at         :dat etime
  14   #  current _sign_in_i p     :ine t
  15   #  last_si gn_in_ip         :ine t
  16   #  created _at              :dat etime
  17   #  updated _at              :dat etime
  18   #  roles                    :tex t
  19   #  first_n ame              :str ing
  20   #  last_na me               :str ing
  21   #  is_unde r_review         :boo lean           defaul t(TRUE)
  22   #  failed_ attempts         :int eger           defaul t(0)
  23   #  unlock_ token            :str ing
  24   #  locked_ at               :dat etime
  25   #  provide r                :str ing
  26   #  uid                      :str ing
  27   #  authori zation_sta te    :str ing            defaul t("none")
  28   #
  29  
  30   # Read abo ut factori es at http s://github .com/thoug htbot/fact ory_bot
  31  
  32   FactoryBot .define do
  33     factory  :user do
  34         email { "d octor#{Sec ureRandom. hex(5)}@ DOMAIN " }
  35         password " REDACTED "
  36       first_ name "Doc"
  37       last_n ame "Brown "
  38       roles  []
  39       is_und er_review  false
  40   #   author ization "a uthorized"
  41     end
  42  
  43     factory  :admin, cl ass: User  do
  44       sequen ce(:email)  { |n| "ad min#{n}@ex ample.com"  }
  45       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  46       sequen ce(:last_n ame) { |n|  "last_nam e#{n}" }
  47         password " REDACTED "
  48       roles  ["app_admi n"]
  49       author ization_st ate "autho rized"
  50     end
  51  
  52     factory  :medical_a ssistant,  class: Use r do
  53         email { "m a#{SecureR andom.hex( 5)}@ DOMAIN " }
  54         password " REDACTED "
  55       first_ name "Medi cal"
  56       last_n ame "Assis tant"
  57       roles  ["medical_ assistant" ]
  58       is_und er_review  false
  59     end
  60  
  61     factory  :superviso r, class:  User do
  62         email { "s upervisor# {SecureRan dom.hex(5) }@ DOMAIN " }
  63         password " REDACTED "
  64       first_ name "Supe r"
  65       last_n ame "Visor "
  66       roles  ["supervis or"]
  67       is_und er_review  false
  68     end
  69  
  70     factory  :examiner,  class: Us er do
  71         email { "e xaminer#{S ecureRando m.hex(5)}@ DOMAIN " }
  72         password " REDACTED "
  73       first_ name "Exam "
  74       last_n ame "Iner"
  75       roles  ["examiner "]
  76       is_und er_review  false
  77     end
  78  
  79     factory  :vha_user,  class: Us er do
  80       sequen ce(:email)  { |n| "vh a_user#{n} @example.c om" }
  81       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  82       sequen ce(:last_n ame)  { |n | "last_na me#{n}" }
  83         password " REDACTED "
  84       roles  ["vha_cc"]
  85     end
  86  
  87     factory  :community _provider,  class: Us er do
  88       npi  {  FactoryBo t.create(: provider). npi }
  89       sequen ce(:email)       { |n | "communi ty_provide r#{n}@exam ple.com" }
  90       sequen ce(:first_ name) { |n | "first_n ame#{n}" }
  91       sequen ce(:last_n ame)  { |n | "last_na me#{n}" }
  92         password " REDACTED "
  93       roles  ["non_vha" ]
  94     end
  95  
  96   end