Sha256: 82cbcd90b6e0bcae1e726aee19168ff46b3bfb3254d814b57e9e1b8b07b6204f
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
require "pry" require "swagger_roar" RSpec::Matchers.define :generate_swagger_documentation do match do |m| grape_doc(m) == roar_doc(m) end def grape_doc(m) "#{m}::GrapeEntity".constantize.documentation end def roar_doc(m) "#{m}::RoarRepresenter".constantize.documentation end failure_message do |m| "expected that Roar doc would be #{roar_doc(m)}, but was #{grape_doc(m)}" end end
Version data entries
5 entries across 5 versions & 1 rubygems