Skip to content

Commit

Permalink
Refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKing0126 committed May 1, 2024
1 parent 5c7b9a8 commit 11ac1c3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 44 deletions.
87 changes: 53 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
GIT
remote: https://github.com/adhocteam/connect_vbms
revision: 6e5dc751afaf0da9c7cbc10c94b909f114f3a156
tag: v2.0.0.rc
specs:
connect_vbms (2.0.0.rc)
httpclient (~> 2.8.0)
httpi (~> 2.4)
mail
nokogiri (>= 1.8.4)
nori
xmldsig (~> 0.3.1)
xmlenc

GIT
remote: https://github.com/department-of-veterans-affairs/apivore
revision: f8ccd476f6c5301f5ebe4e2dd5b30ff0e567ffc1
Expand Down Expand Up @@ -30,20 +44,6 @@ GIT
nokogiri (>= 1.13.6)
savon (= 2.12)

GIT
remote: https://github.com/department-of-veterans-affairs/connect_vbms.git
revision: 1834cf61310001c82e2e96d665518407c3bce947
branch: master
specs:
connect_vbms (1.4.0)
httpclient (~> 2.8.0)
httpi (~> 2.4)
mail
nokogiri (>= 1.8.4)
nori
xmldsig (~> 0.3.1)
xmlenc

GIT
remote: https://github.com/department-of-veterans-affairs/fhir_client.git
revision: 52e0197dcb1f940a1f0b28bfa983699f0c199696
Expand Down Expand Up @@ -131,6 +131,17 @@ PATH
veteran_confirmation (0.0.1)
vye (0.1.0)

GEM
remote: https://enterprise.contribsys.com/
specs:
sidekiq-ent (7.2.2)
einhorn (~> 1.0)
gserver
sidekiq (>= 7.2.0, < 8)
sidekiq-pro (>= 7.2.0, < 8)
sidekiq-pro (7.2.0)
sidekiq (>= 7.2.0, < 8)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -232,21 +243,21 @@ GEM
attr_extras (7.1.0)
awesome_print (1.9.2)
aws-eventstream (1.3.0)
aws-partitions (1.914.0)
aws-sdk-core (3.192.0)
aws-partitions (1.920.0)
aws-sdk-core (3.193.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.79.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (1.80.0)
aws-sdk-core (~> 3, >= 3.193.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.147.0)
aws-sdk-core (~> 3, >= 3.192.0)
aws-sdk-s3 (1.148.0)
aws-sdk-core (~> 3, >= 3.193.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
aws-sdk-sns (1.73.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-sns (1.74.0)
aws-sdk-core (~> 3, >= 3.193.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
Expand Down Expand Up @@ -290,7 +301,7 @@ GEM
cork
nap
open4 (~> 1.3)
clam_scan (0.0.2)
clamav-client (3.2.0)
cliver (0.3.2)
coderay (1.1.3)
coercible (1.0.0)
Expand All @@ -306,7 +317,7 @@ GEM
content_disposition (1.0.0)
cork (0.3.0)
colored2 (~> 3.1)
coverband (6.1.0)
coverband (6.1.2)
redis (>= 3.0)
crack (1.0.0)
bigdecimal
Expand Down Expand Up @@ -354,7 +365,7 @@ GEM
docile (1.4.0)
dogstatsd-ruby (5.6.1)
domain_name (0.6.20240107)
down (5.4.1)
down (5.4.2)
addressable (~> 2.8)
drb (2.2.1)
dry-configurable (1.1.0)
Expand Down Expand Up @@ -395,6 +406,7 @@ GEM
dry-initializer (~> 3.0)
dry-schema (>= 1.12, < 2)
zeitwerk (~> 2.6)
einhorn (1.0.0)
erubi (1.12.0)
et-orbi (1.2.7)
tzinfo
Expand Down Expand Up @@ -584,9 +596,12 @@ GEM
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
libdatadog (5.0.0.1.0)
libdatadog (5.0.0.1.0-aarch64-linux)
libdatadog (5.0.0.1.0-x86_64-linux)
libddwaf (1.14.0.0.0)
ffi (~> 1.0)
libddwaf (1.14.0.0.0-aarch64-linux)
ffi (~> 1.0)
libddwaf (1.14.0.0.0-java)
ffi (~> 1.0)
libddwaf (1.14.0.0.0-x86_64-linux)
Expand Down Expand Up @@ -651,7 +666,8 @@ GEM
nokogiri (1.16.4)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nori (2.6.0)
nori (2.7.0)
bigdecimal
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
Expand Down Expand Up @@ -680,7 +696,7 @@ GEM
os (1.1.4)
ox (2.14.18)
parallel (1.24.0)
parallel_tests (4.6.1)
parallel_tests (4.7.1)
parallel
parser (3.3.0.5)
ast (~> 2.4.1)
Expand Down Expand Up @@ -730,7 +746,7 @@ GEM
stringio
psych (5.1.2-java)
jar-dependencies (>= 0.1.7)
public_suffix (5.0.4)
public_suffix (5.0.5)
puma (6.4.2)
nio4r (~> 2.0)
puma (6.4.2-java)
Expand All @@ -740,7 +756,7 @@ GEM
raabro (1.4.0)
racc (1.7.3)
racc (1.7.3-java)
rack (2.2.8.1)
rack (2.2.9)
rack-attack (6.7.0)
rack (>= 1.0, < 4)
rack-cors (2.0.2)
Expand Down Expand Up @@ -946,10 +962,10 @@ GEM
shellany (0.0.1)
shoulda-matchers (6.2.0)
activesupport (>= 5.2.0)
shrine (3.5.0)
shrine (3.6.0)
content_disposition (~> 1.0)
down (~> 5.1)
sidekiq (7.2.2)
sidekiq (7.2.4)
concurrent-ruby (< 2)
connection_pool (>= 2.3.0)
rack (>= 2.2.4)
Expand Down Expand Up @@ -985,7 +1001,7 @@ GEM
stringio (3.1.0)
strong_migrations (1.8.0)
activerecord (>= 5.2)
super_diff (0.11.0)
super_diff (0.12.1)
attr_extras (>= 6.2.4)
diff-lcs
patience_diff
Expand Down Expand Up @@ -1063,6 +1079,7 @@ GEM
zeitwerk (2.6.13)

PLATFORMS
aarch64-linux
java
ruby
x64-mingw32
Expand Down Expand Up @@ -1098,7 +1115,7 @@ DEPENDENCIES
carrierwave-aws
check_in!
claims_api!
clam_scan
clamav-client
combine_pdf
config
connect_vbms!
Expand Down Expand Up @@ -1232,6 +1249,8 @@ DEPENDENCIES
shoulda-matchers
shrine
sidekiq (~> 7.2.0)
sidekiq-ent!
sidekiq-pro!
sidekiq_alive
simple_forms_api!
simplecov
Expand Down Expand Up @@ -1265,7 +1284,7 @@ DEPENDENCIES
yard

RUBY VERSION
ruby 3.2.3p157
ruby 3.2.4p170

BUNDLED WITH
2.4.9
12 changes: 2 additions & 10 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@
end
end

describe '#onboarding - feature toggle enabled' do
describe '#onboarding' do
let(:user) { create(:user, icn: identity_icn) }
let(:identity_icn) { 'some_identity_icn' }

Expand All @@ -1243,17 +1243,9 @@
user.onboarding.display_onboarding_flow = false
expect(user.show_onboarding_flow_on_login).to be false
end
end

describe '#onboarding - feature toggle disabled' do
let(:user) { create(:user, icn: identity_icn) }
let(:identity_icn) { 'some_identity_icn' }

before do
Flipper.disable(:veteran_onboarding_beta_flow)
end

it 'show_onboarding_flow_on_login returns false when feature flag is disabled, even if display_onboarding_flow is true' do
Flipper.disable(:veteran_onboarding_beta_flow)
expect(user.show_onboarding_flow_on_login).to be_falsey
end

Expand Down

0 comments on commit 11ac1c3

Please sign in to comment.