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/support/request_helpers.rb
Ruby
mit
19
main
500
module RequestHelpers def self.included(base) super base.include(JsonHelpers) base.include(ResponseHelpers) end module JsonHelpers def json_headers { "ACCEPT" => "application/json", "HTTP_ACCEPT" => "application/json", "Content-Type" => "application/json", } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/time_matcher.rb
Ruby
mit
19
main
275
RSpec::Matchers.define :have_been_in_the_past do match do |actual_time| @time_now = Time.current actual_time < @time_now end failure_message do |actual_time| "Expected actual_time (#{actual_time.to_f}) to be earlier than now (#{@time_now.to_f})" end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/text_area_matcher.rb
Ruby
mit
19
main
684
RSpec::Matchers.define :have_text_area_with_id_and_content do |expected_id, expected_content| match do |actual| text_area = extract_text_area(actual, expected_id) if text_area.empty? false else text_area.text.sub(/^\n/, "") == expected_content end end failure_message do |actual| t...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/malware_scanner.rb
Ruby
mit
19
main
450
RSpec.configure do |config| config.before do |example| unless example.metadata[:clamav] == true stdout = "/some/file/path.pdf: OK" stderr = "" status = instance_double(Process::Status, success?: true, exitstatus: 0) allow(Open3).to receive(:capture3).and_call_original allow(Open3) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/bank_holiday_retriever_stubs.rb
Ruby
mit
19
main
1,069
require Rails.root.join("spec/fixtures/stub_data/bank_holidays_fixture") def stub_bankholiday_success stub_request(:get, %r{#{Rails.configuration.x.bank_holidays_url}}) .to_return( status: 200, body: BankHolidaysFixture.data.to_json, headers: { "Content-Type" => "application/json; charset=utf-8...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/have_xml.rb
Ruby
mit
19
main
686
require "nokogiri" RSpec::Matchers.define :have_xml do |xpath, text| results = [] match do nodes = xml_doc.xpath(xpath) return false if nodes.empty? if text nodes.each do |node| results << (node.content == text) end end results.any?(true) end failure_message do ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/capybara/request_helpers.rb
Ruby
mit
19
main
272
module Capybara module RequestHelpers def self.included(base) super base.include(ContentHelpers) end module ContentHelpers def have_error_message(text) have_css(".govuk-error-summary__list > li", text:) end end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/reauthable_shared_examples.rb
Ruby
mit
19
main
635
RSpec.shared_examples "a reauthable model" do let(:record) { described_class.new(current_sign_in_at:) } describe "reauthenticate?" do subject { record.reauthenticate? } before do allow(record).to receive(:reauthenticate_in).and_return(5.minutes) end context "when `current_sign_in_at` has no...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/legal_framework_failures_shared_examples.rb
Ruby
mit
19
main
3,500
module LegalFramework RSpec.shared_examples "a failed call to LegalFrameworkAPI" do # shared examples for testing failure conditions when posting to LegalFrameworkAPI Service # context "with http status 422" do before do stub_request(:post, service.legal_framework_url) .with(body: ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/ccms_opponent_id_generator_shared_examples.rb
Ruby
mit
19
main
1,605
RSpec.shared_examples "CCMS opponent id generator" do describe "#generate_ccms_opponent_id" do let(:opposable) { opponent.opposable } context "when #ccms_opponent_id is nil" do before do opponent.update!(ccms_opponent_id: nil) allow(CCMS::OpponentId).to receive(:next_serial_id).and_retu...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/provider_auth_shared_examples.rb
Ruby
mit
19
main
381
RSpec.shared_examples "a provider not authenticated" do it "redirects the user to the login page" do expect(response).to redirect_to(new_provider_session_path) end end RSpec.shared_examples "an authenticated provider from a different firm" do it "redirects the user to the access denied page" do expect(re...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/cfe_failures_shared_examples.rb
Ruby
mit
19
main
3,270
module CFE RSpec.shared_examples "a failed call to CFE" do # shared examples for testing failure conditions when posting to Check Financial Eligibility Service # context "with http status 422" do before do stub_request(:post, service.cfe_url) .with(body: service.request_body) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_examples/ccms_document_upload_request_generator_shared_examples.rb
Ruby
mit
19
main
462
RSpec.shared_examples "a Document Upload Request XML generator" do include_context "with ccms soa configuration" it "generates the expected Document Upload Request XML" do allow(requestor).to receive(:transaction_request_id).and_return(expected_tx_id) expect(requestor.formatted_xml) .to be_soap_enve...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/support/shared_context/ccms_soa_configuration_context.rb
Ruby
mit
19
main
858
RSpec.configure do |rspec| # This config option will be enabled by default on RSpec 4, # but for reasons of backwards compatibility, you have to # set it on RSpec 3. # # It causes the host group and examples to inherit metadata # from the shared context. rspec.shared_context_metadata_behavior = :apply_to_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/bank_transaction_presenter_spec.rb
Ruby
mit
19
main
4,502
require "rails_helper" RSpec.describe BankTransactionPresenter do subject(:presenter) { described_class.new(transaction, remarks) } let(:account) { create(:bank_account, account_type: "SAVINGS") } let(:transaction) { create(:bank_transaction, :uncategorised_credit_transaction, bank_account: account) } let(:re...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/applicant_account_presenter_spec.rb
Ruby
mit
19
main
1,482
require "rails_helper" RSpec.describe ApplicantAccountPresenter do subject(:applicant_account_presenter) { described_class.new(applicant.bank_providers.first) } let(:applicant) { create(:applicant) } let(:addresses) do [{ address: Faker::Address.building_number, city: Faker::Address.city, zip:...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/make_link_spec.rb
Ruby
mit
19
main
479
require "rails_helper" RSpec.describe Task::MakeLink do subject(:instance) { described_class.new(application, name: "make_link", status_results: {}) } let(:application) { create(:legal_aid_application) } describe "#path" do include Rails.application.routes.url_helpers it "returns the route to first st...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/check_provider_answers_spec.rb
Ruby
mit
19
main
503
require "rails_helper" RSpec.describe Task::CheckProviderAnswers do subject(:instance) { described_class.new(application, name: "check_provider_applicants", status_results: {}) } let(:application) { create(:legal_aid_application) } describe "#path" do include Rails.application.routes.url_helpers it "r...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/applicants_spec.rb
Ruby
mit
19
main
473
require "rails_helper" RSpec.describe Task::Applicants do subject(:instance) { described_class.new(application, name: "applicants", status_results: {}) } let(:application) { create(:legal_aid_application) } describe "#path" do include Rails.application.routes.url_helpers it "returns the route to first...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/base_spec.rb
Ruby
mit
19
main
5,141
require "rails_helper" RSpec.describe Task::Base do let(:application) { create(:legal_aid_application) } describe ".build" do context "with an existing named class" do it "builds an instance of the named class" do task = described_class.build(application, "applicants", status_results: {}) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/proceedings_types_spec.rb
Ruby
mit
19
main
729
require "rails_helper" RSpec.describe Task::ProceedingsTypes do subject(:path) { described_class.new(application, name: "proceedings_types", status_results: {}).path } describe "#path" do include Rails.application.routes.url_helpers context "when there are no proceedings selected" do let(:applicati...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/dwp_outcome_spec.rb
Ruby
mit
19
main
1,136
require "rails_helper" RSpec.describe Task::DWPOutcome do subject(:instance) { described_class.new(application, name: "dwp_outcome", status_results: {}) } let(:application) { create(:legal_aid_application, :with_applicant) } describe "#path" do include Rails.application.routes.url_helpers it "returns ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task/partner_spec.rb
Ruby
mit
19
main
468
require "rails_helper" RSpec.describe Task::Partner do subject(:instance) { described_class.new(application, name: "partner", status_results: {}) } let(:application) { create(:legal_aid_application) } describe "#path" do include Rails.application.routes.url_helpers it "returns the route to first step ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task_list/section_spec.rb
Ruby
mit
19
main
2,780
require "rails_helper" RSpec.describe TaskList::Section do let(:presenter) { described_class.new(application, **args) } let(:application) { create(:legal_aid_application) } let(:args) do { name: :client_and_case_details, tasks:, index: 1, } end let(:tasks) do { applicant...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task_list/subsection_spec.rb
Ruby
mit
19
main
2,602
require "rails_helper" RSpec.describe TaskList::Subsection do let(:presenter) { described_class.new(application, **args) } let(:application) { create(:legal_aid_application) } let(:args) do { name: :means_assessment, sub_name: :financial_information, tasks: {}, index: 2, } end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/presenters/task_list/start_page_collection_spec.rb
Ruby
mit
19
main
1,701
require "rails_helper" RSpec.describe TaskList::StartPageCollection do include ActionView::TestCase::Behavior subject(:start_page_collection) { described_class.new(view, application:) } let(:application) { create(:legal_aid_application, applicant: build(:applicant)) } # Cucumber feature tests are to be used...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_specs/legal_aid_application_factory_spec.rb
Ruby
mit
19
main
2,038
require "rails_helper" RSpec.describe "LegalAidApplication factory" do describe ":with_bank_accounts" do context "when used with :with_applicant" do context "with applicant not specified" do it "has no applicant" do legal_aid_application = create(:legal_aid_application) expect(l...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_specs/v4/cfe_result_factory_spec.rb
Ruby
mit
19
main
13,445
require "rails_helper" RSpec.describe "cfe_result version 4 factory" do let(:assessment) { cfe_result.result_hash[:assessment] } let(:applicant) { assessment[:applicant] } let(:gross_income) { assessment[:gross_income] } let(:disposable_income) { assessment[:disposable_income] } let(:capital) { assessment[:c...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_specs/v3/cfe_result_factory_spec.rb
Ruby
mit
19
main
11,791
require "rails_helper" RSpec.describe "cfe_result factory" do let(:assessment) { cfe_result.result_hash[:assessment] } let(:applicant) { assessment[:applicant] } let(:gross_income) { assessment[:gross_income] } let(:disposable_income) { assessment[:disposable_income] } let(:capital) { assessment[:capital] } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_specs/hmrc_response/use_case_one_helper_spec.rb
Ruby
mit
19
main
862
require "rails_helper" module FactoryHelpers module HMRCResponse RSpec.describe UseCaseOne do let(:correlation_id) { SecureRandom.uuid } let(:legal_aid_application) { create(:legal_aid_application, :with_applicant) } let(:applicant) { legal_aid_application.applicant } it "returns a hash ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/scheduled_mailings_delivery_job_spec.rb
Ruby
mit
19
main
2,961
require "rails_helper" require Rails.root.join("spec/mock_objects/mock_queued_job") RSpec.describe ScheduledMailingsDeliveryJob do subject(:scheduled_mailings_delivery_job) { described_class.new.perform } describe "ScheduledMailingsDeliveryJob" do let(:application) { create(:application, :with_everything) } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/bank_transactions_analyser_job_spec.rb
Ruby
mit
19
main
1,974
require "rails_helper" module Banking RSpec.describe BankTransactionsAnalyserJob do subject(:bank_transaction_analyser_job) { described_class.perform_now(legal_aid_application) } let(:legal_aid_application) { create(:legal_aid_application, :with_non_passported_state_machine, :analysing_bank_transactions) } ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/post_submission_processing_job_spec.rb
Ruby
mit
19
main
846
require "rails_helper" RSpec.describe PostSubmissionProcessingJob do subject(:psp_job) { described_class.new.perform(application.id, feedback_url) } let(:application) { create(:legal_aid_application) } let(:feedback_url) { "www.example.com/feedback/new" } describe "SubmissionConfirmationMailer" do it "sc...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/email_monitor_job_spec.rb
Ruby
mit
19
main
675
require "rails_helper" RSpec.describe EmailMonitorJob do describe "perform" do before { create(:scheduled_mailing, :due) } let(:created) { create(:scheduled_mailing, :created) } let(:processing) { create(:scheduled_mailing, :processing) } let(:sending) { create(:scheduled_mailing, :sending) } i...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/scheduled_ccms_submissions_toggle_job_spec.rb
Ruby
mit
19
main
3,827
require "rails_helper" RSpec.describe ScheduledCCMSSubmissionsToggleJob do let(:job) { described_class.new } let(:setting) { Setting.setting } let(:slack_message_service) { instance_double(Slack::SendMessage) } before do allow(Slack::SendMessage).to receive(:call) end describe "#perform" do conte...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/citizen_complete_means_job_spec.rb
Ruby
mit
19
main
1,110
require "rails_helper" RSpec.describe CitizenCompleteMeansJob, :vcr do subject(:citizen_complete_means_job) { described_class.new.perform(legal_aid_application.id) } let(:legal_aid_application) { create(:legal_aid_application, :with_applicant, :with_non_passported_state_machine, :applicant_entering_means) } let...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/jobs/reports_uploader_job_spec.rb
Ruby
mit
19
main
2,054
require "rails_helper" RSpec.describe ReportsUploaderJob do let(:report_uploader) { described_class.new } describe "#expiration" do it "returns 24 hours in seconds" do expect(report_uploader.expiration).to eq 86_400 end end describe "#perform" do before { allow(Reports::MIS::ApplicationDeta...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_helpers/cfe_employment_remarks_adder.rb
Ruby
mit
19
main
1,504
module FactoryHelpers class CFEEmploymentRemarksAdder def self.call(cfe_result) new(cfe_result).call end def initialize(cfe_result) @cfe_result = cfe_result @laa = @cfe_result.legal_aid_application end def call create_employment_records emp = @laa.reload.employments...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/factory_helpers/hmrc_response/use_case_one.rb
Ruby
mit
19
main
16,857
module FactoryHelpers module HMRCResponse class UseCaseOne def initialize(correlation_id, options = {}) @correlation_id = correlation_id @options = options generate_named_data if @options.key?(:named_data) end def firstname @firstname ||= (@options[:firstname] ||...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/citizen_completed_means_mailer_spec.rb
Ruby
mit
19
main
1,360
require "rails_helper" RSpec.describe CitizenCompletedMeansMailer do let(:application) { create(:legal_aid_application, :with_everything) } let(:email) { Faker::Internet.email } let(:provider_name) { Faker::Name.name } let(:applicant_name) { Faker::Name.name } let(:application_url) { "/provider/legal_aid_app...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/submission_confirmation_mailer_spec.rb
Ruby
mit
19
main
1,120
require "rails_helper" RSpec.describe SubmissionConfirmationMailer do describe ".notify" do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant) } let(:provider) { legal_aid_application.provider } let(:applicant) { legal_aid_application.applicant } let(:feedback_url) { "www.e...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/undeliverable_email_alert_mailer_spec.rb
Ruby
mit
19
main
2,515
require "rails_helper" RSpec.describe UndeliverableEmailAlertMailer do let(:applicant) { create(:applicant, first_name: "John", last_name: "Doe", email: "johndoe@email.com") } let(:provider) { create(:provider) } let(:legal_aid_application) { create(:legal_aid_application, applicant:) } let(:failure_reason) { ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/submit_application_reminder_mailer_spec.rb
Ruby
mit
19
main
2,084
require "rails_helper" RSpec.describe SubmitApplicationReminderMailer do let(:application) do create(:legal_aid_application, :with_applicant, :with_proceedings, :with_everything, :with_delegated_functions_on_proceedings, df_options: { DA001: 10.days.ago }, ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/submit_citizen_financial_reminder_mailer_spec.rb
Ruby
mit
19
main
1,987
require "rails_helper" RSpec.describe SubmitCitizenFinancialReminderMailer do let(:application) { create(:legal_aid_application, :with_applicant, :with_everything, :with_non_passported_state_machine) } let(:email) { Faker::Internet.email } let(:provider_name) { Faker::Name.name } let(:application_url) { "http:...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/resend_link_request_mailer_spec.rb
Ruby
mit
19
main
707
require "rails_helper" RSpec.describe ResendLinkRequestMailer do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant) } let(:application_url) { "https://this_is_a_test.com" } let(:mail) do described_class.notify( legal_aid_application.application_ref, legal_aid_applicatio...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/submit_provider_financial_reminder_mailer_spec.rb
Ruby
mit
19
main
1,724
require "rails_helper" RSpec.describe SubmitProviderFinancialReminderMailer do let(:application) { create(:legal_aid_application, :with_applicant) } let(:email) { Faker::Internet.email } let(:provider_name) { Faker::Name.name } let(:application_url) { "test" } describe "#notify_provider" do let(:mail) {...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/notify_mailer_spec.rb
Ruby
mit
19
main
1,195
require "rails_helper" RSpec.describe NotifyMailer do let(:app_id) { SecureRandom.uuid } let(:email) { Faker::Internet.email } let(:client_name) { Faker::Name.name } let(:provider_firm) { Faker::Name.name } let(:application_url) { "/applications/#{app_id}/citizen/start" } let(:citizen_start_application_tem...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/exception_alert_mailer_spec.rb
Ruby
mit
19
main
729
require "rails_helper" RSpec.describe ExceptionAlertMailer do let(:environment) { "production" } let(:details) { "alert details" } let(:dummy_email_address) { "john@example.com" } let(:mail) { described_class.notify(environment:, details:, to: dummy_email_address) } describe "notify" do it "is a govuk_n...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/mailers/citizen_confirmation_mailer_spec.rb
Ruby
mit
19
main
959
require "rails_helper" RSpec.describe CitizenConfirmationMailer do let(:app_id) { SecureRandom.uuid } let(:email) { Faker::Internet.email } let(:client_name) { Faker::Name.name } let(:citizen_completed_application_template) { Rails.configuration.govuk_notify_templates[:citizen_completed_application] } descr...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/special_children_act_state_machine_spec.rb
Ruby
mit
19
main
2,945
require "rails_helper" require "aasm/rspec" RSpec.describe SpecialChildrenActStateMachine do subject(:state_machine) { legal_aid_application.state_machine } let(:legal_aid_application) { create(:legal_aid_application, :with_sca_state_machine) } it { expect(legal_aid_application).not_to be_applicant_entering_me...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/base_state_machine_spec.rb
Ruby
mit
19
main
5,991
require "rails_helper" require "aasm/rspec" RSpec.describe BaseStateMachine do subject(:state_machine) { legal_aid_application.state_machine } let(:legal_aid_application) { create(:legal_aid_application, :with_base_state_machine) } describe "#check_applicant_details" do let(:event) { :check_applicant_detai...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/non_passported_state_machine_spec.rb
Ruby
mit
19
main
2,595
require "rails_helper" RSpec.describe NonPassportedStateMachine do describe "#applicant_enter_means!" do subject(:event) { legal_aid_application.applicant_enter_means! } let(:legal_aid_application) { create(:legal_aid_application, :use_ccms_offline_accounts) } it "sets state to provider_entering_means"...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/passported_state_machine_spec.rb
Ruby
mit
19
main
355
require "rails_helper" RSpec.describe PassportedStateMachine do describe "provider_enter_means!" do it "sets the ccms_reason to nil" do legal_aid_application = create(:legal_aid_application, :use_ccms_self_employed) legal_aid_application.provider_enter_means! expect(legal_aid_application.ccms_r...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/non_means_tested_state_machine_spec.rb
Ruby
mit
19
main
711
require "rails_helper" require "aasm/rspec" RSpec.describe NonMeansTestedStateMachine do subject(:state_machine) { legal_aid_application.state_machine } let(:legal_aid_application) { create(:legal_aid_application, :with_non_means_tested_state_machine) } it { expect(legal_aid_application).not_to be_applicant_en...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/concerns/ccms_submission_state_machine_spec.rb
Ruby
mit
19
main
6,318
require "rails_helper" require "aasm/rspec" RSpec.describe CCMSSubmissionStateMachine do subject(:state_machine) { ccms_submission } describe "#obtain_case_ref" do let(:event) { :obtain_case_ref } context "when the application has a lead application" do let(:ccms_submission) { create(:ccms_submissi...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/policies/legal_aid_application_policy_spec.rb
Ruby
mit
19
main
2,403
require "rails_helper" RSpec.describe LegalAidApplicationPolicy do subject(:laa_policy) { described_class.new(authorization_context, legal_aid_application) } let(:pre_dwp_check_controller) { Providers::CorrespondenceAddress::LookupsController.new } let(:post_dwp_check_controller) { Providers::BankTransactionsCo...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/policies/provider_access_spec.rb
Ruby
mit
19
main
1,505
require "rails_helper" RSpec.describe "Provider access", type: :request do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant) } let(:other_provider) { create(:provider) } it "allows provider to access page in flow until submission" do login_as legal_aid_application.provider #...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/sidekiq_spec.rb
Ruby
mit
19
main
635
require "rails_helper" RSpec.describe "sidekiq WEB UI" do describe "GET /sidekiq" do it "returns unauthorized status" do get sidekiq_web_path expect(response).to have_http_status(:unauthorized) end context "with the right authentication" do it "is successful" do username = "si...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/status_controller_spec.rb
Ruby
mit
19
main
7,501
require "rails_helper" RSpec.describe StatusController, :clamav do describe "#healthcheck" do before do allow(Sidekiq::ProcessSet).to receive(:new).and_return(instance_double(Sidekiq::ProcessSet, size: 1)) allow(Sidekiq::RetrySet).to receive(:new).and_return(instance_double(Sidekiq::RetrySet, size: 0...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/backable_spec.rb
Ruby
mit
19
main
5,783
require "rails_helper" RSpec.describe "Backable" do let(:application) { create(:legal_aid_application, :with_applicant) } let(:address_lookup_path) { providers_legal_aid_application_correspondence_address_lookup_path(application) } let(:address_path) { providers_legal_aid_application_correspondence_address_manua...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/security_text_spec.rb
Ruby
mit
19
main
364
require "rails_helper" RSpec.describe "security text page" do describe "GET /.well-known/security.txt" do it "redirects successfully" do get "/.well-known/security.txt" expect(response).to redirect_to("https://raw.githubusercontent.com/ministryofjustice/security-guidance/master/contact/vulnerability-...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/feedbacks_spec.rb
Ruby
mit
19
main
13,255
require "rails_helper" require "sidekiq/testing" RSpec.describe "FeedbacksController" do describe "POST /feedback" do Rack::Attack.enabled = false subject(:post_request) { post feedback_index_path, params:, headers: { "HTTP_REFERER" => originating_page } } let(:params) { { feedback: attributes_for(:feed...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/problem_controller_spec.rb
Ruby
mit
19
main
592
require "rails_helper" RSpec.describe ProblemController do describe "GET /problem" do before { get problem_index_path } it "renders successfully" do expect(response).to have_http_status(:ok) end it "displays the correct content" do expect(unescaped_response_body).to match(I18n.t("proble...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/auth_spec.rb
Ruby
mit
19
main
980
require "rails_helper" RSpec.describe "AuthController" do let(:params) do { "message" => "provider_error", "origin" => origin_path, "strategy" => "true_layer", } end describe "GET failure" do subject(:get_request) { get "/auth/failure", params: } context "with origin from citi...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/errors_controller_spec.rb
Ruby
mit
19
main
10,080
require "rails_helper" # Requires mocking the config neccessary to display error pages as on production # environments, or errors will be handled as for test/development environment # - i.e rendering the helpful rails error pages. # RSpec.describe ErrorsController, :show_exceptions do context "when page not found d...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/pages_controller_spec.rb
Ruby
mit
19
main
8,335
require "rails_helper" RSpec.describe PagesController, :clamav do context "with invalid locale" do before do allow(Rails.logger).to receive(:warn) get unauthenticated_root_path, params: { locale: "enMobile" } end it "responds with success" do expect(response).to have_http_status(:ok) ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/privacy_policy_spec.rb
Ruby
mit
19
main
588
require "rails_helper" RSpec.describe "privacy policy page" do describe "GET /privacy_policy" do it "returns renders successfully" do get privacy_policy_index_path expect(response).to have_http_status(:ok) end it "display contact information" do get privacy_policy_index_path expe...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/home_spec.rb
Ruby
mit
19
main
209
require "rails_helper" RSpec.describe "status requests" do describe "GET /" do it "returns renders successfully" do get root_path expect(response).to have_http_status(:ok) end end end
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/contact_spec.rb
Ruby
mit
19
main
488
require "rails_helper" RSpec.describe "contact page" do describe "GET /contact" do it "returns renders successfully" do get contact_path expect(response).to have_http_status(:ok) end it "display contact information" do get contact_path expect(page) .to have_content("Tele...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/accessibility_statement_spec.rb
Ruby
mit
19
main
1,465
require "rails_helper" RSpec.describe "accessibility statement page" do describe "GET /accessibility_statement" do it "returns renders successfully" do get accessibility_statement_index_path expect(response).to have_http_status(:ok) end it "display accessibility information" do get acc...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/ccms_queues_controller_spec.rb
Ruby
mit
19
main
5,319
require "rails_helper" RSpec.describe Admin::CCMSQueuesController do let(:admin_user) { create(:admin_user) } describe "GET index" do subject(:get_index) { get admin_ccms_queues_path } before do sign_in admin_user end it "renders successfully" do get_index expect(response).to h...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/feedback_controller_spec.rb
Ruby
mit
19
main
1,951
require "rails_helper" RSpec.describe Admin::FeedbackController do let(:count) { 2 } let(:admin_user) { create(:admin_user) } let(:params) { {} } before do create(:feedback, satisfaction: "satisfied") create_list(:feedback, count) sign_in admin_user end describe "GET /admin/feedback" do s...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/legal_aid_applications_controller_spec.rb
Ruby
mit
19
main
7,032
require "rails_helper" RSpec.describe Admin::LegalAidApplicationsController do let(:count) { 3 } let!(:legal_aid_applications) { create_list(:legal_aid_application, count, :with_applicant, :with_non_passported_state_machine, :with_ccms_submission) } let!(:no_applicant_application) { create(:legal_aid_application...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/firms_controller_spec.rb
Ruby
mit
19
main
1,117
require "rails_helper" module Admin RSpec.describe FirmsController do let(:admin_user) { create(:admin_user) } let!(:firms) { create_list(:firm, 3) } let(:permission) { create(:permission) } before do sign_in admin_user firms.each do |firm| firm.permissions << permission ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/roles_controller_spec.rb
Ruby
mit
19
main
1,281
require "rails_helper" RSpec.describe Admin::RolesController do let(:admin_user) { create(:admin_user) } let!(:noodle_firm) { create(:firm, name: "Noodle, Legs & Co.") } let!(:mckenzie_firm) { create(:firm, name: "McKenzie, Brackman, Chaney and Kuzak") } let!(:mckenzie_gervais_firm) { create(:firm, name: "McKe...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/submitted_applications_reports_controller_spec.rb
Ruby
mit
19
main
2,371
require "rails_helper" RSpec.describe Admin::SubmittedApplicationsReportsController do let(:count) { 3 } let!(:legal_aid_applications) { create_list(:legal_aid_application, count, :with_applicant, :with_ccms_submission, :submitted_to_ccms) } let!(:unsubmitted_application) { create(:legal_aid_application, :with_a...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/settings_controller_spec.rb
Ruby
mit
19
main
3,607
require "rails_helper" RSpec.describe Admin::SettingsController do let(:admin_user) { create(:admin_user) } before do Setting.delete_all sign_in admin_user end describe "GET /admin/settings" do subject(:get_request) { get admin_settings_path } it "renders successfully" do get_request ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/site_banners_controller_spec.rb
Ruby
mit
19
main
6,599
require "rails_helper" RSpec.describe Admin::SiteBannersController do let(:admin_user) { create(:admin_user) } before do sign_in admin_user end describe "GET /admin/site_banners" do subject(:get_request) { get admin_site_banners_path } it "renders successfully" do get_request expect(...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/providers_controller_spec.rb
Ruby
mit
19
main
1,516
require "rails_helper" module Admin RSpec.describe ProvidersController do let(:admin_user) { create(:admin_user) } before { sign_in admin_user } describe "GET index" do let(:my_firm) { Firm.create(name: "Me, Myself and I Ltd.") } let(:your_firm) { Firm.create(name: "You and Yours Partners")...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/reports_controller_spec.rb
Ruby
mit
19
main
3,361
require "rails_helper" RSpec.describe Admin::ReportsController do let(:admin_user) { create(:admin_user) } before { sign_in admin_user } describe "GET index" do subject(:get_request) { get admin_reports_path } it "renders successfully" do get_request expect(response).to have_http_status(:o...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/roles/permissions_controller_spec.rb
Ruby
mit
19
main
1,369
require "rails_helper" RSpec.describe Admin::Roles::PermissionsController do let(:admin_user) { create(:admin_user) } let!(:firm) { create(:firm, name: "McKenzie, Brackman, Chaney and Kuzak") } before { sign_in admin_user } describe "GET index" do subject(:get_request) { get admin_roles_permission_path(f...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/admin/legal_aid_applications/submissions_controller_spec.rb
Ruby
mit
19
main
3,097
require "rails_helper" RSpec.describe Admin::LegalAidApplications::SubmissionsController do let(:admin_user) { create(:admin_user) } let(:legal_aid_application) { create(:legal_aid_application, :with_everything, :with_ccms_submission) } before { sign_in admin_user } describe "GET show" do subject(:get_re...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/about_financial_means_controller_spec.rb
Ruby
mit
19
main
1,279
require "rails_helper" RSpec.describe Providers::AboutFinancialMeansController do let(:legal_aid_application) { create(:legal_aid_application, :applicant_details_checked, :with_applicant) } let(:provider) { legal_aid_application.provider } describe "GET /providers/applications/:id/about_financial_means" do ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/omniauth_callbacks_spec.rb
Ruby
mit
19
main
2,520
require "rails_helper" RSpec.describe "provider omniauth call back" do before do allow(AlertManager).to receive(:capture_message) # optional, to prevent real error logging end describe "GET /auth/entra_id/callback" do subject(:get_request) do get provider_entra_id_omniauth_callback_path end ...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/transactions_controller_spec.rb
Ruby
mit
19
main
10,192
require "rails_helper" require Rails.root.join("spec/factories/cfe_results/state_benefit_types/mock_state_benefit_type_result") RSpec.describe Providers::TransactionsController do include ActionView::Helpers::NumberHelper let(:legal_aid_application) { create(:legal_aid_application, :with_applicant, :with_transact...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/has_evidence_of_benefits_controller_spec.rb
Ruby
mit
19
main
5,912
require "rails_helper" RSpec.describe Providers::HasEvidenceOfBenefitsController do let(:legal_aid_application) do create(:legal_aid_application, :with_dwp_override, :checking_applicant_details, :with_proceedings, :with_delegated_functions_on_proceedings, ex...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/capital_introductions_controller_spec.rb
Ruby
mit
19
main
3,463
require "rails_helper" RSpec.describe Providers::CapitalIntroductionsController do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant, :with_passported_state_machine, :checking_applicant_details) } let(:provider) { legal_aid_application.provider } describe "GET /providers/applications/...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/end_of_applications_controller_spec.rb
Ruby
mit
19
main
2,564
require "rails_helper" RSpec.describe Providers::EndOfApplicationsController do let(:legal_aid_application) { create(:legal_aid_application, :assessment_submitted) } let(:login) { login_as legal_aid_application.provider } before { login } describe "GET /providers/applications/:legal_aid_application_id/end_of...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/use_ccms_employment_controller_spec.rb
Ruby
mit
19
main
1,667
require "rails_helper" RSpec.describe Providers::UseCCMSEmploymentController do let(:legal_aid_application) { create(:legal_aid_application, :with_self_employed_applicant) } let(:provider) { legal_aid_application.provider } describe "GET /providers/applications/:id/use_ccms_employment" do subject(:get_reque...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/user_not_founds_spec.rb
Ruby
mit
19
main
696
require "rails_helper" RSpec.describe "provider invalid schedules" do describe "GET providers/user_not_founds" do let(:provider) { create(:provider) } before do login_as provider get providers_user_not_founds_path end it "returns http success" do expect(response).to have_http_stat...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/select_offices_spec.rb
Ruby
mit
19
main
12,082
require "rails_helper" require Rails.root.join("spec/services/pda/provider_details_request_stubs") require Rails.root.join("spec/support/bank_holiday_retriever_stubs") RSpec.describe "provider selects office" do let(:provider) { create(:provider, :without_ccms_user_details, office_codes: "0X395U:2N078D:A123456", wit...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/check_capital_answers_controller_spec.rb
Ruby
mit
19
main
7,631
require "rails_helper" RSpec.describe Providers::CheckCapitalAnswersController do include ActionView::Helpers::NumberHelper let(:provider) { create(:provider) } let(:applicant) { create(:applicant) } let(:partner) { nil } let(:savings_amount) { create(:savings_amount, :with_partner_values) } let(:transact...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/check_merits_answers_controller_spec.rb
Ruby
mit
19
main
11,667
require "rails_helper" require "sidekiq/testing" RSpec.describe Providers::CheckMeritsAnswersController do include ActionView::Helpers::NumberHelper describe "GET /providers/applications/:id/check_merits_answers" do subject(:get_request) { get "/providers/applications/#{application.id}/check_merits_answers" }...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/auth_controller_spec.rb
Ruby
mit
19
main
416
require "rails_helper" RSpec.describe Providers::AuthController do context "when an oauth error is returned" do subject(:patch_request) do get providers_auth_failure_path({ message: "error_message", origin: "fake_origin", strategy: "entra_id" }) end it "redirects to the error page with access deni...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/no_national_insurance_numbers_controller_spec.rb
Ruby
mit
19
main
3,533
require "rails_helper" RSpec.describe Providers::NoNationalInsuranceNumbersController do describe "GET /providers/applications/:legal_aid_application_id/no_national_insurance_number" do subject(:request) { get "/providers/applications/#{application.id}/no_national_insurance_number" } let(:application) { cre...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/outgoings_summary_controller_spec.rb
Ruby
mit
19
main
6,065
require "rails_helper" RSpec.describe Providers::OutgoingsSummaryController do include Capybara let(:maintenance_out) { create(:transaction_type, :maintenance_out) } let(:rent_or_mortgage) { create(:transaction_type, :rent_or_mortgage) } let(:legal_aid_application) do application = create(:legal_aid_appl...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/has_national_insurance_numbers_controller_spec.rb
Ruby
mit
19
main
2,599
require "rails_helper" RSpec.describe Providers::HasNationalInsuranceNumbersController do let(:legal_aid_application) { create(:legal_aid_application) } let(:provider) { legal_aid_application.provider } let(:next_flow_step) { flow_forward_path } before { login_as provider } describe "GET /providers/applica...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/application_dependable_spec.rb
Ruby
mit
19
main
1,301
require "rails_helper" RSpec.describe "Providers::ApplicationDependable" do let(:legal_aid_application) { create(:legal_aid_application, :with_applicant) } let(:provider) { legal_aid_application.provider } describe "GET an action" do let(:get_request) { get providers_legal_aid_application_applicant_details_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/providers_controller_spec.rb
Ruby
mit
19
main
4,687
require "rails_helper" require Rails.root.join("spec/services/pda/provider_details_request_stubs") RSpec.describe Providers::ProvidersController do let(:provider) { create(:provider) } let(:address_string) { "Test Firm, Test Address Line 1, Test Address Line 2, Test City, TE5T1NG" } before do stub_provider_...
github
ministryofjustice/laa-apply-for-legal-aid
https://github.com/ministryofjustice/laa-apply-for-legal-aid
spec/requests/providers/capital_income_assessment_results_controller_spec.rb
Ruby
mit
19
main
26,754
require "rails_helper" RSpec.describe Providers::CapitalIncomeAssessmentResultsController do include ActionView::Helpers::NumberHelper let(:login_provider) { login_as legal_aid_application.provider } describe "GET /providers/applications/:legal_aid_application_id/capital_income_assessment_result" do subjec...