Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mspa 2678 get options working #41

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MSPA-2678 adding 'use unsafe load' call to activerecord singlton so t…
…hat psych can load Sinatra classes
shanekelly-bbc committed Dec 2, 2022
commit bfc3b44743f8957686d150c27fa4ee9fee1c21b8
2 changes: 2 additions & 0 deletions lib/rest-assured/models/double.rb
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@ class Double < ActiveRecord::Base
VERBS = %w{GET POST PUT DELETE HEAD PATCH OPTIONS}
STATUSES = Net::HTTPResponse::CODE_TO_OBJ.keys.map(&:to_i)
MAX_DELAY = 30
# needed for spec test TODO: possibly move out to test specific env/world class
ActiveRecord::Base.use_yaml_unsafe_load=true

validate :fullpath_or_pattern
validate :pattern_is_regex