Skip to content

Commit 4072504

Browse files
author
Jake Boxer
committed
Remove semicolons from asset live reload spec
1 parent 915e3f7 commit 4072504

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

spec/application_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,25 +198,25 @@
198198
end
199199

200200
it "reloads changed assets" do
201-
# On the first request, stylesheet should have `display: block;` and not
202-
# `display: inline;`.
201+
# On the first request, stylesheet should have `display: block` and not
202+
# `display: inline`.
203203
response = @request.get("/assets/stylesheets/app.css")
204204
expect(response).to be_ok
205-
expect(response.body).to match(/display: ?block;/)
206-
expect(response.body).not_to match(/display: ?inline;/)
205+
expect(response.body).to match(/display: ?block/)
206+
expect(response.body).not_to match(/display: ?inline/)
207207

208208
# Load layout and change the title to "Changed"
209209
asset_path = File.join(@root, "app", "assets", "stylesheets", "my-styles.scss")
210210
asset_data = File.read(asset_path)
211-
asset_data.sub!("display: block;", "display: inline;")
211+
asset_data.sub!("display: block", "display: inline")
212212
File.write(asset_path, asset_data)
213213

214-
# On the second request, stylesheet should have `display: inline;` and not
215-
# `display: block;`.
214+
# On the second request, stylesheet should have `display: inline` and not
215+
# `display: block`.
216216
response = @request.get("/assets/stylesheets/app.css")
217217
expect(response).to be_ok
218-
expect(response.body).to match(/display: ?inline;/)
219-
expect(response.body).not_to match(/display: ?block;/)
218+
expect(response.body).to match(/display: ?inline/)
219+
expect(response.body).not_to match(/display: ?block/)
220220
end
221221
end
222222

0 commit comments

Comments
 (0)