From 3321ed444736e561f57843933fb0226e2c972694 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 30 Nov 2021 19:24:06 +0000 Subject: [PATCH] Test views --- .../requests/organisations_controller_spec.rb | 44 ++++++++++++++++--- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb index fadc1706c..8680aa49c 100644 --- a/spec/requests/organisations_controller_spec.rb +++ b/spec/requests/organisations_controller_spec.rb @@ -5,13 +5,45 @@ RSpec.describe OrganisationsController, type: :request do let(:organisation) { user.organisation } let(:headers) { { "Accept" => "text/html" } } - before do - sign_in user - get "/organisations/#{organisation.id}", headers: headers, params: {} + context "details tab" do + before do + sign_in user + get "/organisations/#{organisation.id}", headers: headers, params: {} + end + + it "shows the tab navigation" do + expected_html = "