Sha256: 600756972c317f9af49b31260fd9718a231d80ace3dad7e781ea3cb9e7cb474b

Contents?: true

Size: 626 Bytes

Versions: 19

Compression:

Stored size: 626 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'cmis'
require 'erb'
require 'yaml'

module SpecHelpers
  def server
    @@server ||= CMIS::Server.new(options['server'])
  end

  def repository_id
    @@repository_id ||= options['repository']
  end

  def repository
    @@repository ||= server.repository(repository_id)
  end

  private

  def options
    @@options ||= begin
      path = File.join(File.dirname(File.expand_path(__FILE__)), 'config.yml')
      config = YAML.load(ERB.new(File.read(path)).result)
      config[ENV.fetch('TEST_ENV', 'local')]
    end
  end
end

RSpec.configure do |c|
  c.include SpecHelpers
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cmis-ruby-0.5.29 spec/spec_helper.rb
cmis-ruby-0.5.28 spec/spec_helper.rb
cmis-ruby-0.5.27 spec/spec_helper.rb
cmis-ruby-0.5.26 spec/spec_helper.rb
cmis-ruby-0.5.25 spec/spec_helper.rb
cmis-ruby-0.5.24 spec/spec_helper.rb
cmis-ruby-0.5.23 spec/spec_helper.rb
cmis-ruby-0.5.22 spec/spec_helper.rb
cmis-ruby-0.5.21 spec/spec_helper.rb
cmis-ruby-0.5.20 spec/spec_helper.rb
cmis-ruby-0.5.19 spec/spec_helper.rb
cmis-ruby-0.5.18 spec/spec_helper.rb
cmis-ruby-0.5.17 spec/spec_helper.rb
cmis-ruby-0.5.16 spec/spec_helper.rb
cmis-ruby-0.5.15 spec/spec_helper.rb
cmis-ruby-0.5.14 spec/spec_helper.rb
cmis-ruby-0.5.13 spec/spec_helper.rb
cmis-ruby-0.5.12 spec/spec_helper.rb
cmis-ruby-0.5.11 spec/spec_helper.rb