diff --git a/spec/factories/case_log.rb b/spec/factories/case_log.rb index fcc0fd68d..e2f132c53 100644 --- a/spec/factories/case_log.rb +++ b/spec/factories/case_log.rb @@ -11,7 +11,7 @@ FactoryBot.define do tenant_code { "BZ737" } postcode { "NW1 7TY" } end - created_at { Time.now } - updated_at { Time.now } + created_at { Time.zone.now } + updated_at { Time.zone.now } end end diff --git a/spec/features/test_spec.rb b/spec/features/test_spec.rb index 5fa8db2cc..a17336378 100644 --- a/spec/features/test_spec.rb +++ b/spec/features/test_spec.rb @@ -2,7 +2,7 @@ require "rails_helper" RSpec.describe "Test Features" do it "Displays the name of the app" do visit("/") - expect(page).to have_content("Share Lettings and Sales for Social Housing in England Data with MHCLG") + expect(page).to have_content("Share Lettings and Sales for Social Housing in England Data with DLUHC") end it "Links to the About page" do diff --git a/spec/views/case_log_index_view_spec.rb b/spec/views/case_log_index_view_spec.rb index c9c6a416c..f99c82419 100644 --- a/spec/views/case_log_index_view_spec.rb +++ b/spec/views/case_log_index_view_spec.rb @@ -3,8 +3,8 @@ RSpec.describe "case_logs/index" do let(:in_progress_log) { FactoryBot.build(:case_log, :in_progress) } let(:submitted_log) { FactoryBot.build(:case_log, :submitted) } - context 'given an in progress log list' do - it 'renders a table for in progress logs only' do + context "given an in progress log list" do + it "renders a table for in progress logs only" do assign(:in_progress_case_logs, [in_progress_log]) assign(:submitted_case_logs, []) render @@ -16,8 +16,8 @@ RSpec.describe "case_logs/index" do end end - context 'given a submitted log list' do - it 'renders a table for in progress logs only' do + context "given a submitted log list" do + it "renders a table for in progress logs only" do assign(:in_progress_case_logs, []) assign(:submitted_case_logs, [submitted_log]) render @@ -29,8 +29,8 @@ RSpec.describe "case_logs/index" do end end - context 'given a submitted log list and an in_progress log list' do - it 'renders two tables, one for each status' do + context "given a submitted log list and an in_progress log list" do + it "renders two tables, one for each status" do assign(:in_progress_case_logs, [in_progress_log]) assign(:submitted_case_logs, [submitted_log]) render