Sha256: 0b78b31777bc4002a42dcaf38071b4f9c436b04c1e700a757a128367ea981571

Contents?: true

Size: 614 Bytes

Versions: 5

Compression:

Stored size: 614 Bytes

Contents

require 'rack/test'
require 'rspec'

require File.join(File.dirname(__FILE__),'..','..','lib','rhoconnect','server.rb')
require File.join(File.dirname(__FILE__),'..','spec_helper')
require File.join(File.dirname(__FILE__), '..', 'support', 'shared_examples')

def app
  @app ||= Rhoconnect::Server.new
end

def compress(path)
  path.sub!(%r[/$],'')
  archive = File.join(path,File.basename(path))+'.zip'
  FileUtils.rm archive, :force=>true
  Zip::ZipFile.open(archive, 'w') do |zipfile|
    Dir["#{path}/**/**"].reject{|f|f==archive}.each do |file|
      zipfile.add(file.sub(path+'/',''),file)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rhoconnect-3.0.1 spec/api/api_helper.rb
rhoconnect-3.0.0 spec/api/api_helper.rb
rhoconnect-3.0.0.rc1 spec/api/api_helper.rb
rhoconnect-3.0.0.beta3 spec/api/api_helper.rb
rhoconnect-3.0.0.beta1 spec/api/api_helper.rb