Skip to content

Commit

Permalink
Merge pull request #35 from ydah/revert_example
Browse files Browse the repository at this point in the history
Change the README example to a simple because the warning no longer appear
  • Loading branch information
willnet authored Feb 4, 2024
2 parents 3403b88 + 840bb38 commit a041cdc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ describe 'request spec' do
include Committee::Rails::Test::Methods

def committee_options
@committee_options ||= {
schema_path: Rails.root.join('schema', 'schema.json').to_s,
query_hash_key: 'rack.request.query_hash',
parse_response_by_content_type: false,
}
@committee_options ||= { schema_path: Rails.root.join('schema', 'schema.json').to_s }
end

describe 'GET /' do
Expand Down Expand Up @@ -82,11 +78,7 @@ If you use rspec, you can use very simple.
```ruby
RSpec.configure do |config|
config.add_setting :committee_options
config.committee_options = {
schema_path: Rails.root.join('schema', 'schema.json').to_s,
query_hash_key: 'rack.request.query_hash',
parse_response_by_content_type: false,
}
config.committee_options = { schema_path: Rails.root.join('schema', 'schema.json').to_s }
end
```

Expand Down

0 comments on commit a041cdc

Please sign in to comment.