Skip to content

Commit

Permalink
Rebase following changes to allow walk ins to skip verification
Browse files Browse the repository at this point in the history
  • Loading branch information
jkempster34 committed Oct 20, 2021
1 parent 1f3624e commit e144077
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ gem "actionpack-cloudfront", ">= 1.1.0"
# HTML-aware ERB parsing
gem "better_html"

gem "dfe_wizard", github: "DFE-Digital/dfe_wizard", branch: "move-extra-controller-code"
gem "dfe_wizard", github: "DFE-Digital/dfe_wizard"

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down
3 changes: 1 addition & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
GIT
remote: https://github.com/DFE-Digital/dfe_wizard.git
revision: 3b8fb44c760a0e342d89ed7a4824733a224646b0
branch: move-extra-controller-code
revision: 27c34d9ba46ee963668a39e9e69bc67496740481
specs:
dfe_wizard (0.1.0)
activemodel (>= 6.0.3.4)
Expand Down
2 changes: 1 addition & 1 deletion app/models/events/wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Wizard < ::DFEWizard::Base
].freeze

def matchback_attributes
%i[candidate_id qualification_id].freeze
%i[candidate_id qualification_id is_verified].freeze
end

def complete!
Expand Down
4 changes: 2 additions & 2 deletions spec/models/events/wizard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

describe "#matchback_attributes" do
it do
expect(subject.matchback_attributes).to match_array(%i[candidate_id qualification_id])
expect(subject.matchback_attributes).to match_array(%i[candidate_id qualification_id is_verified])
end
end

Expand Down Expand Up @@ -94,7 +94,7 @@
before { wizardstore[:is_walk_in] = false }

it "raises an exception" do
expect { subject.exchange_unverified_request(request) }.to raise_error(Wizard::ContinueUnverifiedNotSupportedError)
expect { subject.exchange_unverified_request(request) }.to raise_error(DFEWizard::ContinueUnverifiedNotSupportedError)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/requests/event_steps_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def perform_request
before do
allow_any_instance_of(Events::Steps::PersonalDetails).to \
receive(:is_walk_in?).and_return(true)
allow_any_instance_of(Wizard::Steps::Authenticate).to \
allow_any_instance_of(DFEWizard::Steps::Authenticate).to \
receive(:candidate_identity_data) { camelized_identity_data }
end

Expand Down

0 comments on commit e144077

Please sign in to comment.