Skip to content

Commit

Permalink
Add integration test for eager loading
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jun 25, 2020
1 parent 0e079df commit 0dd6ccc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ matrix:
gemfile: gemfiles/multi_json.gemfile
script:
- bundle exec rake
- bundle exec rspec spec/integration/eager_load
- bundle exec rspec spec/integration/multi_json
- rvm: 2.7.1
gemfile: gemfiles/multi_xml.gemfile
script:
- bundle exec rake
- bundle exec rspec spec/integration/eager_load
- bundle exec rspec spec/integration/multi_xml
- rvm: 2.6.6
gemfile: Gemfile
Expand Down
11 changes: 11 additions & 0 deletions spec/integration/eager_load/eager_load_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib'))
require 'grape'
require 'grape/eager_load'

describe 'eager loading' do
it 'loads successfully' do
expect { Grape.eager_load! }.to_not raise_error
end
end

0 comments on commit 0dd6ccc

Please sign in to comment.