lib/berkshelf/api/rspec/server.rb in berkshelf-api-0.2.0 vs lib/berkshelf/api/rspec/server.rb in berkshelf-api-1.0.0

- old
+ new

@@ -16,10 +16,13 @@ end def start(options = {}) options = options.reverse_merge(port: 26210, log_location: "/dev/null", endpoints: []) Berkshelf::API::Application.config.endpoints = options[:endpoints] - Berkshelf::API::Application.run!(options) unless running? + unless running? + Berkshelf::API::Application.run!(options) + cache_builder.build + end end def stop Berkshelf::API::Application.shutdown end