Skip to content

Commit 2fe2834

Browse files
authored
tests: various fixes (#1577)
1 parent 289934b commit 2fe2834

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

appengine/endpoints/spec/endpoint_sample_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
error = JSON.parse last_response.body
6868

6969
expect(error["error"]).to eq 500
70-
expect(error["message"]).to include "unexpected token"
70+
expect(error["message"]).to include "unexpected "
7171
end
7272

7373
it "handles Firebase Auth" do

appengine/rails-cloudsql-mysql/spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
RSpec.configure do |config|
2121
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
22-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
22+
config.fixture_paths = "#{::Rails.root}/spec/fixtures"
2323

2424
# If you're not using ActiveRecord, or you'd prefer not to run each of your
2525
# examples within a transaction, remove the following line or assign false

appengine/rails-cloudsql-postgres/spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
RSpec.configure do |config|
1919
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
20-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
20+
config.fixture_paths = "#{::Rails.root}/spec/fixtures"
2121

2222
# If you're not using ActiveRecord, or you'd prefer not to run each of your
2323
# examples within a transaction, remove the following line or assign false

appengine/websockets/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ source "https://rubygems.org"
44
gem "faye-websocket"
55
gem "sinatra"
66

7+
gem "rackup"
78
gem "thin"
89
# [END gae_flex_websocket_dependencies]
910

appengine/websockets/spec/websockets_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
end
2727

2828
Capybara.register_server :thin do |app, port, host|
29-
require "rack/handler/thin"
30-
Rack::Handler::Thin.run(app, :Port => port, :Host => host)
29+
require "rackup/handler/thin"
30+
Rackup::Handler::Thin.run(app, :Port => port, :Host => host)
3131
end
3232

3333
Capybara.server = :thin

0 commit comments

Comments
 (0)