Sha256: 4ebc785bdd5f83b3ec2ff84df17c61ab940ea38af874091841f7289f0bb562e2

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

require "rambo_helper"

RSpec.describe "<%= @raml.title %>", type: :rambo do

  # Delete output files from previous test run prior to running tests again
  before(:all) do
    Dir.foreach("spec/contract/output") do |file|
      next unless file.match(/\.json$/)

      File.delete(File.join("spec/contract/output", file))
    end
  end
<%- if @examples.generate! && @examples.compose.size > 0 %>
<%= @examples.compose.chomp %><%- end %>
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rambo_ruby-0.7.1 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.7.0 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.6.0 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.5.0 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.4.0 lib/rambo/rspec/templates/spec_file_template.erb