Skip to content

Commit

Permalink
fix: api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskorobicyn committed Sep 7, 2017
1 parent a7ea4cc commit 08c3799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/apress/api/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
c.include Apress::Api::Rspec::Utils, type: :request

c.before(:context, :api) do
@swagger_schema = Apress::Api::Swagger::Generator.new.data
classes = Apress::Api::Swagger::Schema.swagger_classes
@swagger_schema = ::Swagger::Blocks.build_root_json(classes)
@api = Swagger.build(@swagger_schema.to_json, format: :json)
end

Expand Down

0 comments on commit 08c3799

Please sign in to comment.