Skip to content

Commit

Permalink
#28 Added test case for exclude test and development gem
Browse files Browse the repository at this point in the history
  • Loading branch information
navarasu committed Dec 23, 2020
1 parent ba4e42d commit 438b71f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/exclude-dev-test-gems/serverless.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
service: basic
service: exclude-dev-test-gems

plugins:
- serverless-ruby-layer
Expand Down
7 changes: 6 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ let test_data = [
{folder: 'exclude-functions', gem_zip_dirs: ['/','/bin/','/build_info/','/doc/','/extensions/', '/gems/',
'/specifications/','/gems/httparty/', '/gems/mime-types-data/', '/gems/multi_xml/', '/gems/mime-types/'],
function_files: ['handler1.rb', 'handler2.rb', 'handler3.rb'], include_functions: ['Hello1', 'Hello2'],
exclude_functions: ['Hello3']}
exclude_functions: ['Hello3']},

{ folder: 'exclude-dev-test-gems', gem_zip_dirs: ['/','/bin/','/build_info/','/doc/','/extensions/', '/gems/',
'/specifications/','/gems/httparty/', '/gems/mime-types-data/', '/gems/multi_xml/', '/gems/mime-types/'],
function_files: ['handler.rb'], include_functions: ['Hello'], exclude_functions:[] },

]

describe('serverless package', function () {
Expand Down

0 comments on commit 438b71f

Please sign in to comment.