|
12 | 12 | it "renders autosubmitted form" do |
13 | 13 | get :index |
14 | 14 | expect(response.status).to eq(200) |
15 | | - expect(response.body).to include("action='/auth/bookingsync' method='post'") |
16 | | - expect(response.body).to include("<input type='hidden' name='account_id' value=''>") |
| 15 | + expect(response.body).to include("action=\"/auth/bookingsync\" method=\"post\"") |
| 16 | + expect(response.body).to include("<input type=\"hidden\" name=\"account_id\" value=\"\">") |
17 | 17 | expect(response.header["Content-Type"]).to include("text/html") |
18 | 18 | end |
19 | 19 | end |
|
24 | 24 | it "renders autosubmitted form" do |
25 | 25 | get :index |
26 | 26 | expect(response.status).to eq(200) |
27 | | - expect(response.body).to include("action='/auth/bookingsync' method='post'") |
28 | | - expect(response.body).to include("<input type='hidden' name='account_id' value=''>") |
| 27 | + expect(response.body).to include("action=\"/auth/bookingsync\" method=\"post\"") |
| 28 | + expect(response.body).to include("<input type=\"hidden\" name=\"account_id\" value=\"\">") |
29 | 29 | end |
30 | 30 | end |
31 | 31 | end |
|
37 | 37 | it "renders autosubmitted form" do |
38 | 38 | get :index, xhr: true |
39 | 39 | expect(response.status).to eq(401) |
40 | | - expect(response.body).to include("action='/auth/bookingsync' method='post'") |
41 | | - expect(response.body).to include("<input type='hidden' name='account_id' value=''>") |
| 40 | + expect(response.body).to include("action=\"/auth/bookingsync\" method=\"post\"") |
| 41 | + expect(response.body).to include("<input type=\"hidden\" name=\"account_id\" value=\"\">") |
42 | 42 | end |
43 | 43 | end |
44 | 44 |
|
|
48 | 48 | it "renders autosubmitted form" do |
49 | 49 | get :index, xhr: true |
50 | 50 | expect(response.status).to eq(401) |
51 | | - expect(response.body).to include("action='/auth/bookingsync' method='post'") |
52 | | - expect(response.body).to include("<input type='hidden' name='account_id' value=''>") |
| 51 | + expect(response.body).to include("action=\"/auth/bookingsync\" method=\"post\"") |
| 52 | + expect(response.body).to include("<input type=\"hidden\" name=\"account_id\" value=\"\">") |
53 | 53 | end |
54 | 54 | end |
55 | 55 | end |
|
0 commit comments