Sha256: f31bb5a301f224ace05de69bdfcf3abe85949aeaca11603e58a20b99b2ee6941

Contents?: true

Size: 443 Bytes

Versions: 9

Compression:

Stored size: 443 Bytes

Contents

require "rambo_helper"

RSpec.describe "<%= @raml.title %>", type: :request 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

9 entries across 9 versions & 1 rubygems

Version Path
rambo_ruby-0.3.3 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.3.2 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.3.1 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.3.0 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.2.3 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.2.2 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.2.1 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.2.0 lib/rambo/rspec/templates/spec_file_template.erb
rambo_ruby-0.1.0 lib/rspec/templates/spec_file_template.erb