spec/views/pugin/components/_status.html.haml_spec.rb in pugin-0.5.4 vs spec/views/pugin/components/_status.html.haml_spec.rb in pugin-0.5.5.pre
- old
+ new
@@ -9,26 +9,15 @@
expect(response).to eq(
<<DATA
<div class='highlight__status status'>
<div class='container--full-grid'>
-<p>This is a test website, so may be inaccurate or misleading - <a target="_blank" title="website opens in a new window" href="https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&isPublished=false">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
-</div>
-</div>
-DATA
- )
- end
- end
-
- context 'with a status message' do
- it 'renders as expected' do
- render partial: 'pugin/components/status', locals: { status: "test" }
-
- expect(rendered).to eq(
-<<DATA
-<div class='highlight__status status__test'>
-<div class='container--full-grid'>
-<p>This is a test website, so may be inaccurate or misleading - <a target="_blank" title="website opens in a new window" href="https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&isPublished=false">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
+<p>
+This is a test website, so may be inaccurate or misleading
+ - <a href='https://ukparliament-self.achieveservice.com/AchieveForms/?form_uri=sandbox://AF-Form-337e2b87-4c8b-40f7-bb72-a80f15284b21&amp;category=AF-Category-108691b0-e15c-46d7-9d16-7ad0d35cdb2a&amp;isPublished=false' target='_blank' title='website opens in a new window'>give feedback</a>
+to help improve it. Return to
+<a href='https://www.parliament.uk'>current website</a>.
+</p>
</div>
</div>
DATA
)
end