source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/about_financial_means_step_spec.rb
Ruby
mit
19
main
509
require "rails_helper" RSpec.describe Flow::Steps::Partner::AboutFinancialMeansStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_pa...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/use_ccms_employment_step_spec.rb
Ruby
mit
19
main
391
require "rails_helper" RSpec.describe Flow::Steps::Partner::UseCCMSEmploymentStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_part...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/state_benefits_step_spec.rb
Ruby
mit
19
main
522
require "rails_helper" RSpec.describe Flow::Steps::Partner::StateBenefitsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql new_providers_legal_aid_applicati...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/regular_incomes_step_spec.rb
Ruby
mit
19
main
1,455
require "rails_helper" RSpec.describe Flow::Steps::Partner::RegularIncomesStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/add_other_state_benefits_step_spec.rb
Ruby
mit
19
main
1,414
require "rails_helper" RSpec.describe Flow::Steps::Partner::AddOtherStateBenefitsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_appli...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/bank_statements_step_spec.rb
Ruby
mit
19
main
2,724
require "rails_helper" RSpec.describe Flow::Steps::Partner::BankStatementsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/contrary_interests_step_spec.rb
Ruby
mit
19
main
1,378
require "rails_helper" RSpec.describe Flow::Steps::Partner::ContraryInterestsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_cont...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/remove_state_benefits_step_spec.rb
Ruby
mit
19
main
1,278
require "rails_helper" RSpec.describe Flow::Steps::Partner::RemoveStateBenefitsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant_and_partner) } let(:transaction) do create(:regular_transaction, transaction_type: create(:transaction_type, :benefits),...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/no_nino_interrupts_step_spec.rb
Ruby
mit
19
main
389
require "rails_helper" RSpec.describe Flow::Steps::Partner::NoNinoInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/full_employment_details_step_spec.rb
Ruby
mit
19
main
664
require "rails_helper" RSpec.describe Flow::Steps::Partner::FullEmploymentDetailsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/details_step_spec.rb
Ruby
mit
19
main
1,041
require "rails_helper" RSpec.describe Flow::Steps::Partner::DetailsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_partners_detai...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/client_has_partners_step_spec.rb
Ruby
mit
19
main
798
require "rails_helper" RSpec.describe Flow::Steps::Partner::ClientHasPartnersStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_clie...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/employed_but_no_hmrc_data_interrupts_step_spec.rb
Ruby
mit
19
main
422
require "rails_helper" RSpec.describe Flow::Steps::Partner::EmployedButNoHMRCDataInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/employed_step_spec.rb
Ruby
mit
19
main
1,399
require "rails_helper" RSpec.describe Flow::Steps::Partner::EmployedStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_partners_empl...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/single_employment_interrupts_step_spec.rb
Ruby
mit
19
main
409
require "rails_helper" RSpec.describe Flow::Steps::Partner::SingleEmploymentInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/hmrc_unavailable_interrupts_step_spec.rb
Ruby
mit
19
main
407
require "rails_helper" RSpec.describe Flow::Steps::Partner::HMRCUnavailableInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/regular_outgoings_step_spec.rb
Ruby
mit
19
main
3,685
require "rails_helper" RSpec.describe Flow::Steps::Partner::RegularOutgoingsStep, type: :request do let(:application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(application) } it { is_expected.to eql providers_legal_aid_application_partners_regular_outgoing...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/multiple_employments_interrupts_step_spec.rb
Ruby
mit
19
main
415
require "rails_helper" RSpec.describe Flow::Steps::Partner::MultipleEmploymentsInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/cash_outgoings_step_spec.rb
Ruby
mit
19
main
2,879
require "rails_helper" RSpec.describe Flow::Steps::Partner::CashOutgoingsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_partners...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/unemployed_but_hmrc_found_data_interrupts_step_spec.rb
Ruby
mit
19
main
432
require "rails_helper" RSpec.describe Flow::Steps::Partner::UnemployedButHMRCFoundDataInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/receives_state_benefits_step_spec.rb
Ruby
mit
19
main
1,946
require "rails_helper" RSpec.describe Flow::Steps::Partner::ReceivesStateBenefitsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/partner/student_finances_step_spec.rb
Ruby
mit
19
main
644
require "rails_helper" RSpec.describe Flow::Steps::Partner::StudentFinancesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_legal_aid_application_partne...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/date_client_told_incidents_step_spec.rb
Ruby
mit
19
main
789
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::DateClientToldIncidentsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_appl...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/confirm_client_declarations_step_spec.rb
Ruby
mit
19
main
530
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ConfirmClientDeclarationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_ap...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/second_appeals_step_spec.rb
Ruby
mit
19
main
1,367
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::SecondAppealsStep, type: :request do let(:legal_aid_application) do create(:legal_aid_application, appeal: create(:appeal, second_appeal:)) end before do allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_tas...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/client_offered_undertakings_step_spec.rb
Ruby
mit
19
main
793
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ClientOfferedUndertakingsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_ap...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/child_care_assessment_step_spec.rb
Ruby
mit
19
main
1,612
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ChildCareAssessmentStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:fake_next...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/merits_reports_step_spec.rb
Ruby
mit
19
main
372
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::MeritsReportsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application_me...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/nature_of_urgencies_step_spec.rb
Ruby
mit
19
main
777
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::NatureOfUrgenciesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/matter_opposed_reasons_step_spec.rb
Ruby
mit
19
main
782
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::MatterOpposedReasonsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applica...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/when_contact_was_made_step_spec.rb
Ruby
mit
19
main
780
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::WhenContactWasMadeStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applicati...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/involved_children_step_spec.rb
Ruby
mit
19
main
5,319
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::InvolvedChildrenStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application, params) } let(:partial_record) { create(:involved_child,...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/domestic_abuse_summaries_step_spec.rb
Ruby
mit
19
main
785
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::DomesticAbuseSummariesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_appli...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/second_appeal_court_types_step_spec.rb
Ruby
mit
19
main
839
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::SecondAppealCourtTypesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } before do allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_lists) end describe "#path" do subject { ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/end_of_applications_step_spec.rb
Ruby
mit
19
main
507
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::EndOfApplicationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/court_order_copies_step_spec.rb
Ruby
mit
19
main
1,105
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::CourtOrderCopiesStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_appl...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/statement_of_cases_step_spec.rb
Ruby
mit
19
main
1,268
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::StatementOfCasesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/start_opponent_task_step_spec.rb
Ruby
mit
19
main
692
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::StartOpponentTaskStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } context "when applicant has opponents" do let(:...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/client_denial_of_allegations_step_spec.rb
Ruby
mit
19
main
793
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ClientDenialOfAllegationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_ap...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/check_merits_answers_step_spec.rb
Ruby
mit
19
main
515
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::CheckMeritsAnswersStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applicati...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/original_judge_levels_step_spec.rb
Ruby
mit
19
main
2,351
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OriginalJudgeLevelsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application, appeal:) } let(:appeal) { create(:appeal, original_judge_level:) } before do allow(Flow::MeritsLoop).to receive(:forward_flow).and_return...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponent_new_organisation_step_spec.rb
Ruby
mit
19
main
657
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentNewOrganisationStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq new_providers_legal_aid_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/attempts_to_settle_step_spec.rb
Ruby
mit
19
main
950
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::AttemptsToSettleStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/linked_children_step_spec.rb
Ruby
mit
19
main
945
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::LinkedChildrenStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_li...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponents_mental_capacities_step_spec.rb
Ruby
mit
19
main
791
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentsMentalCapacitiesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_ap...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/chances_of_success_step_spec.rb
Ruby
mit
19
main
1,662
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ChancesOfSuccessStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/first_appeal_court_types_step_spec.rb
Ruby
mit
19
main
837
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::FirstAppealCourtTypesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } before do allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_lists) end describe "#path" do subject { d...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/uploaded_evidence_collections_step_spec.rb
Ruby
mit
19
main
525
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::UploadedEvidenceCollectionsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/is_matter_opposed_step_spec.rb
Ruby
mit
19
main
773
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::IsMatterOpposedStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/vary_order_step_spec.rb
Ruby
mit
19
main
935
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::VaryOrderStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_lists) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/in_scope_of_laspos_step_spec.rb
Ruby
mit
19
main
773
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::InScopeOfLasposStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponent_types_step_spec.rb
Ruby
mit
19
main
784
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentTypesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application_op...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/child_care_assessment_result_step_spec.rb
Ruby
mit
19
main
972
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ChildCareAssessmentResultStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:fak...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponent_individuals_step_spec.rb
Ruby
mit
19
main
647
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentIndividualsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq new_providers_legal_aid_appl...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/prohibited_steps_step_spec.rb
Ruby
mit
19
main
947
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ProhibitedStepsStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_l...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponent_existing_organisations_step_spec.rb
Ruby
mit
19
main
665
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentExistingOrganisationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_ai...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/specific_issue_step_spec.rb
Ruby
mit
19
main
943
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::SpecificIssueStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_task_lis...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/submitted_applications_step_spec.rb
Ruby
mit
19
main
506
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::SubmittedApplicationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applic...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/review_and_print_applications_step_spec.rb
Ruby
mit
19
main
523
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::ReviewAndPrintApplicationsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/has_other_opponents_step_spec.rb
Ruby
mit
19
main
914
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::HasOtherOpponentsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/statement_of_case_uploads_step_spec.rb
Ruby
mit
19
main
787
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::StatementOfCaseUploadsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_appli...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/merits_task_lists_step_spec.rb
Ruby
mit
19
main
933
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::MeritsTaskListsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_application_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/opponents_application_step_spec.rb
Ruby
mit
19
main
957
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::OpponentsApplicationStep, type: :request do before do allow(legal_aid_application).to receive(:provider_step_params).and_return({ "merits_task_list_id" => proceeding.id }) allow(Flow::MeritsLoop).to receive(:forward_flow).and_return(:merits_t...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/has_other_involved_children_step_spec.rb
Ruby
mit
19
main
963
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::HasOtherInvolvedChildrenStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_app...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_merits/start_involved_children_task_step_spec.rb
Ruby
mit
19
main
725
require "rails_helper" RSpec.describe Flow::Steps::ProviderMerits::StartInvolvedChildrenTaskStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } context "when there are involved children" do...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/citizen_end/check_answers_step_spec.rb
Ruby
mit
19
main
443
require "rails_helper" RSpec.describe Flow::Steps::CitizenEnd::CheckAnswersStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq citizens_check_answers_path } end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/citizen_end/means_test_results_step_spec.rb
Ruby
mit
19
main
435
require "rails_helper" RSpec.describe Flow::Steps::CitizenEnd::MeansTestResultsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq citizens_means_test_result_path } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/add_other_vehicles_step_spec.rb
Ruby
mit
19
main
2,121
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::AddOtherVehiclesStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_app...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/introductions_step_spec.rb
Ruby
mit
19
main
500
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::IntroductionsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applic...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/check_passported_answers_step_spec.rb
Ruby
mit
19
main
530
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::CheckPassportedAnswersStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/vehicles_step_spec.rb
Ruby
mit
19
main
2,286
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::VehiclesStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application, own_vehicle:) } let(:own_vehicle) { true } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_exp...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/property_details_interrupts_step_spec.rb
Ruby
mit
19
main
412
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::PropertyDetailsInterruptsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eql providers_leg...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/property_details_step_spec.rb
Ruby
mit
19
main
1,031
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::PropertyDetailsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application, property_value:, outstanding_mortgage_amount:) } let(:property_value) { 100_000 } let(:outstanding_mortgage_amount) { 100_000 } describ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/check_capital_answers_step_spec.rb
Ruby
mit
19
main
531
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::CheckCapitalAnswersStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/savings_and_investments_step_spec.rb
Ruby
mit
19
main
2,232
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::SavingsAndInvestmentsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } let(:own_capital?) { true } let(:checking_answers?) { true } before do allow(legal_aid_application).to receive_messages(own...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/means_reports_step_spec.rb
Ruby
mit
19
main
378
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::MeansReportsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_expected.to eq providers_legal_aid_applica...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/vehicle_details_step_spec.rb
Ruby
mit
19
main
1,803
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::VehicleDetailsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application, provider_step_params:) } let(:provider_step_params) { {} } describe "#path" do subject { described_class.path.call(legal_aid_application) } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/remove_vehicles_step_spec.rb
Ruby
mit
19
main
881
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::RemoveVehiclesStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application) } let(:vehicle) { create(:vehicle, legal_aid_application:) } describe "#path" do subject { described_class.path.call(legal_aid_application, v...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/restrictions_step_spec.rb
Ruby
mit
19
main
2,227
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::RestrictionsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } let(:capture_policy_disregards?) { nil } let(:passported?) { nil } let(:provider_checking_or_checked_citizens_means_answers?) { nil } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/own_homes_step_spec.rb
Ruby
mit
19
main
2,161
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::OwnHomesStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application, own_home:) } let(:own_home) { "mortgage" } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { is_exp...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/offline_accounts_step_spec.rb
Ruby
mit
19
main
1,048
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::OfflineAccountsStep, type: :request do let(:application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(application) } it { is_expected.to eql providers_legal_aid_application_offline_account_pa...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/partner_bank_accounts_step_spec.rb
Ruby
mit
19
main
638
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::PartnerBankAccountsStep, type: :request do let(:application) { create(:legal_aid_application) } describe "#path" do subject { described_class.path.call(application) } it { is_expected.to eql providers_legal_aid_application_partners_bank_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/capital_assessment_results_step_spec.rb
Ruby
mit
19
main
851
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::CapitalAssessmentResultsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application, copy_case:) } let(:copy_case) { true } describe "#path" do subject { described_class.path.call(legal_aid_application) } it { i...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/capital_income_assessment_results_step_spec.rb
Ruby
mit
19
main
1,288
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::CapitalIncomeAssessmentResultsStep, type: :request do let(:legal_aid_application) { create(:legal_aid_application, copy_case:) } let(:copy_case) { true } describe "#path" do subject { described_class.path.call(legal_aid_application) } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/other_assets_step_spec.rb
Ruby
mit
19
main
2,621
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::OtherAssetsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } let(:own_capital?) { nil } let(:capture_policy_disregards?) { nil } let(:passported?) { nil } let(:other_assets?) { nil } before do ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/policy_disregards_step_spec.rb
Ruby
mit
19
main
1,696
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::PolicyDisregardsStep, type: :request do let(:legal_aid_application) { build_stubbed(:legal_aid_application) } let(:passported?) { nil } let(:provider_checking_or_checked_citizens_means_answers?) { nil } before do allow(legal_aid_applicati...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/flow/steps/provider_capital/applicant_bank_accounts_step_spec.rb
Ruby
mit
19
main
1,131
require "rails_helper" RSpec.describe Flow::Steps::ProviderCapital::ApplicantBankAccountsStep, type: :request do let(:application) { create(:legal_aid_application, :with_applicant) } describe "#path" do subject { described_class.path.call(application) } it { is_expected.to eql providers_legal_aid_applica...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/provider_details_request_stubs.rb
Ruby
mit
19
main
24,455
################### # provider offices ################### def stub_provider_offices stub_request(:get, %r{#{Rails.configuration.x.pda.url}/provider-users/test-user/provider-offices}) .to_return( status: 200, body: provider_user_offices_json, headers: { "Content-Type" => "application/json; chars...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/schedule_validator_spec.rb
Ruby
mit
19
main
3,136
require "rails_helper" RSpec.describe PDA::ScheduleValidator do describe ".call" do subject(:call) { described_class.call(schedule) } let(:schedule) { create(:schedule, license_indicator:, devolved_power_status:, start_date:, end_date:, cancelled:, authorisation_status:, status:) } let(:license_indicato...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/current_contracts_spec.rb
Ruby
mit
19
main
2,777
require "rails_helper" RSpec.describe PDA::CurrentContracts do describe ".call" do subject(:call) { described_class.call(office_code) } before do stub_request(:get, "#{Rails.configuration.x.pda.url}/provider-offices/#{office_code}/office-contract-details") .to_return(body:, status:) end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/connection_spec.rb
Ruby
mit
19
main
696
require "rails_helper" RSpec.describe PDA::Connection do subject(:instance) { described_class.new } it { is_expected.to respond_to :post } describe "#get" do subject(:get) { instance.get(uri) } let(:uri) { "/" } before { allow(instance.connection).to receive(:get) } it "delegated to adapter c...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/mock_provider_details_updater_spec.rb
Ruby
mit
19
main
4,510
require "rails_helper" RSpec.describe PDA::MockProviderDetailsUpdater do describe ".call" do subject(:call) { described_class.call(provider, office_code) } let(:office_code) { "0X395U" } after do # This mock service will enable mocking and stub requests in "production" code so we should # r...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/provider_details_updater_spec.rb
Ruby
mit
19
main
14,252
require "rails_helper" require Rails.root.join("spec/services/pda/provider_details_request_stubs") RSpec.describe PDA::ProviderDetailsUpdater do describe ".call" do subject(:call) { described_class.call(provider, office.code) } before do firm.offices << office if office stub_request(:get, "#{Rai...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/pda/office_address_retriever_spec.rb
Ruby
mit
19
main
2,889
require "rails_helper" require Rails.root.join("spec/services/pda/provider_details_request_stubs") RSpec.describe PDA::OfficeAddressRetriever do let(:office_code) { "4A497U" } describe "#call" do subject(:call) { described_class.new(office_code).call } context "when the API call is successful" do b...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/component_list_spec.rb
Ruby
mit
19
main
2,867
require "rails_helper" module CFECivil RSpec.describe ComponentList do describe ".call" do subject(:call) { described_class.call(object) } context "when object is passported?" do let(:object) { instance_double(LegalAidApplication, passported?: true, non_passported?: true) } it "retu...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/submission_builder_spec.rb
Ruby
mit
19
main
3,998
require "rails_helper" RSpec.describe CFECivil::SubmissionBuilder, :vcr do before do allow(Rails.configuration.x) .to receive(:cfe_civil_host) .and_return(staging_host) end let(:staging_host) { "https://cfe-civil-staging.cloud-platform.service.justice.gov.uk/" } describe ".call" do subj...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/obtain_state_benefit_types_service_spec.rb
Ruby
mit
19
main
1,656
require "rails_helper" module CFECivil RSpec.describe ObtainStateBenefitTypesService do let(:service) { described_class.new(nil) } let(:cfe_url) { URI.join(Rails.configuration.x.cfe_civil_host, "state_benefit_type") } around do |example| VCR.turned_off { example.run } end describe ".call"...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/components/cash_transactions_spec.rb
Ruby
mit
19
main
5,101
require "rails_helper" RSpec.describe CFECivil::Components::CashTransactions do subject(:call) { described_class.call(legal_aid_application) } let(:legal_aid_application) { create(:legal_aid_application, :with_applicant_and_partner) } context "when there are no cash_transactions" do it "returns expected JS...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/components/partner_spec.rb
Ruby
mit
19
main
7,445
require "rails_helper" RSpec.describe CFECivil::Components::Partner do subject(:call) { described_class.call(legal_aid_application) } let(:legal_aid_application) do create(:legal_aid_application, :with_applicant_and_partner, :with_positive_benefit_check_result, transaction_per...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/services/cfe_civil/components/proceeding_types_spec.rb
Ruby
mit
19
main
420
require "rails_helper" RSpec.describe CFECivil::Components::ProceedingTypes do subject(:call) { described_class.call(legal_aid_application) } let(:legal_aid_application) { create(:legal_aid_application, :with_proceedings) } it "returns the expected JSON block" do expect(call).to eq({ proceeding_types...