|
198 | 198 | end |
199 | 199 |
|
200 | 200 | 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`. |
203 | 203 | response = @request.get("/assets/stylesheets/app.css") |
204 | 204 | 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/) |
207 | 207 |
|
208 | 208 | # Load layout and change the title to "Changed" |
209 | 209 | asset_path = File.join(@root, "app", "assets", "stylesheets", "my-styles.scss") |
210 | 210 | asset_data = File.read(asset_path) |
211 | | - asset_data.sub!("display: block;", "display: inline;") |
| 211 | + asset_data.sub!("display: block", "display: inline") |
212 | 212 | File.write(asset_path, asset_data) |
213 | 213 |
|
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`. |
216 | 216 | response = @request.get("/assets/stylesheets/app.css") |
217 | 217 | 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/) |
220 | 220 | end |
221 | 221 | end |
222 | 222 |
|
|
0 commit comments