Skip to content

Commit

Permalink
[1755] Delete redundant specs
Browse files Browse the repository at this point in the history
This is all tested in the file which is now called viewing_a_course_spec.rb
  • Loading branch information
avinhurry committed Jul 10, 2024
1 parent b155199 commit c875447
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 333 deletions.
2 changes: 0 additions & 2 deletions spec/features/find/search/viewing_a_course_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ def given_there_is_a_findable_course
fee_uk_eu: '9250',
fee_international: '9250',
fee_details: 'Optional fee details',
personal_qualities: 'We are looking for ambitious trainee teachers who are passionate.',
other_requirements: 'You will need three years of prior work experience, but not necessarily in an educational context.',
interview_process: 'Some helpful guidance about the interview process',
how_school_placements_work: 'Some info about how placements work',
about_course: 'This is a course',
Expand Down
317 changes: 0 additions & 317 deletions spec/features/publish/viewing_a_course_2025_spec.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include ActiveSupport::NumberHelper

scenario 'i can view the course basic details' do
allow(Settings).to receive(:current_recruitment_cycle_year).and_return(2024)
# allow(Settings).to receive(:current_recruitment_cycle_year).and_return(2024)
given_i_am_authenticated_as_a_provider_user(course: build(:course))
when_i_visit_the_course_page
and_i_click_on_basic_details
Expand Down Expand Up @@ -352,13 +352,6 @@ def then_i_should_see_the_description_of_the_fee_course

expect(publish_provider_courses_show_page).to have_degree
expect(publish_provider_courses_show_page).to have_gcse

expect(publish_provider_courses_show_page.personal_qualities).to have_content(
course_enrichment.personal_qualities
)
expect(publish_provider_courses_show_page.other_requirements).to have_content(
course_enrichment.other_requirements
)
end

def then_i_should_see_the_description_of_the_salary_course
Expand Down Expand Up @@ -388,12 +381,6 @@ def then_i_should_see_the_description_of_the_salary_course
)
expect(publish_provider_courses_show_page).to have_degree
expect(publish_provider_courses_show_page).to have_gcse
expect(publish_provider_courses_show_page.personal_qualities).to have_content(
course_enrichment.personal_qualities
)
expect(publish_provider_courses_show_page.other_requirements).to have_content(
course_enrichment.other_requirements
)
end

def and_i_should_see_the_course_as(status_tag)
Expand Down

0 comments on commit c875447

Please sign in to comment.