File tree 6 files changed +23
-5
lines changed
flexible/ruby31-and-earlier/rails-cloudsql-mysql/spec/features
rails-cloudsql-mysql/spec
6 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 19
19
scenario "should display a list of cats" do
20
20
visit root_path
21
21
22
- expect ( page ) . to have_content "Ms. Paws\t 2 "
23
- expect ( page ) . to have_content "Mr. Whiskers\t 4 "
22
+ expect ( page ) . to have_content "Ms. Paws 2 "
23
+ expect ( page ) . to have_content "Mr. Whiskers 4 "
24
24
end
25
25
end
Original file line number Diff line number Diff line change 19
19
scenario "should display a list of cats" do
20
20
visit root_path
21
21
22
- expect ( page ) . to have_content "Ms. Paws\t 2 "
23
- expect ( page ) . to have_content "Mr. Whiskers\t 4 "
22
+ expect ( page ) . to have_content "Ms. Paws 2 "
23
+ expect ( page ) . to have_content "Mr. Whiskers 4 "
24
24
end
25
25
end
Original file line number Diff line number Diff line change 13
13
# Checks for pending migration and applies them before tests are run.
14
14
ActiveRecord ::Migration . maintain_test_schema!
15
15
16
- Capybara . current_driver = :cuprite
16
+ Capybara . register_driver :cuprite do |app |
17
+ Capybara ::Cuprite ::Driver . new ( app , browser_options : { 'no-sandbox' : nil } )
18
+ end
17
19
18
20
RSpec . configure do |config |
19
21
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
Original file line number Diff line number Diff line change 14
14
15
15
# [START gae_standard_quickstart]
16
16
require "sinatra"
17
+ # [END gae_standard_quickstart]
18
+ configure :development do
19
+ set :host_authorization , { permitted_hosts : [ ] }
20
+ end
21
+
22
+ # [START gae_standard_quickstart]
17
23
18
24
get "/" do
19
25
"Hello world!"
Original file line number Diff line number Diff line change 18
18
require "sinatra"
19
19
require "faye/websocket"
20
20
require "thin"
21
+ # [END gae_flex_websockets]
22
+
23
+ configure :development do
24
+ set :host_authorization , { permitted_hosts : [ ] }
25
+ end
26
+ # [START gae_flex_websockets]
21
27
22
28
Faye ::WebSocket . load_adapter "thin"
23
29
Original file line number Diff line number Diff line change 21
21
22
22
Capybara . app = Sinatra ::Application
23
23
24
+ Capybara . register_driver :cuprite do |app |
25
+ Capybara ::Cuprite ::Driver . new ( app , browser_options : { 'no-sandbox' : nil } )
26
+ end
27
+
24
28
Capybara . register_server :thin do |app , port , host |
25
29
require "rack/handler/thin"
26
30
Rack ::Handler ::Thin . run ( app , :Port => port , :Host => host )
You can’t perform that action at this time.
0 commit comments