spec/views/pugin/components/_status.html.haml_spec.rb in pugin-0.5.1 vs spec/views/pugin/components/_status.html.haml_spec.rb in pugin-0.5.2
- old
+ new
@@ -7,19 +7,15 @@
it 'renders as expected' do
render partial: 'pugin/components/status', locals: { status: nil }
expect(response).to eq(
<<DATA
-<div class='highlight__status'>
-<div class='container--full-screen status'>
+<div class='highlight__status status'>
<div class='container--full-grid'>
-<div class='row--indent-horizontal'>
<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/en/AchieveForms/?form_uri=sandbox-publish://AF-Process-032e1b1d-958f-4402-9ab2-97a38ed9b899/AF-Stage9b7ecae8-0c85-4ee7-afda-b256cffe5f08/definition.json&redirectlink=%2F&cancelRedirectLink=%2F&category=AF-Category-48936b5c-9329-48c7-a0a5-563463aacadf">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
</div>
</div>
-</div>
-</div>
DATA
)
end
end
@@ -27,16 +23,12 @@
it 'renders as expected' do
render partial: 'pugin/components/status', locals: { status: "test" }
expect(rendered).to eq(
<<DATA
-<div class='highlight__status'>
-<div class='container--full-screen status__test'>
+<div class='highlight__status status__test'>
<div class='container--full-grid'>
-<div class='row--indent-horizontal'>
<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/en/AchieveForms/?form_uri=sandbox-publish://AF-Process-032e1b1d-958f-4402-9ab2-97a38ed9b899/AF-Stage9b7ecae8-0c85-4ee7-afda-b256cffe5f08/definition.json&redirectlink=%2F&cancelRedirectLink=%2F&category=AF-Category-48936b5c-9329-48c7-a0a5-563463aacadf">give feedback</a> to help improve it. Return to <a href="https://www.parliament.uk">current website</a>.</p>
-</div>
-</div>
</div>
</div>
DATA
)
end