server/lib/deltacloud/drivers/sbc/sbc_client.rb
#
# Reads a fake URL from local fixtures
#
Reads a fake URL from local fixtures
Reads a fake URL from local fixtures
def read_fake_url(filename)
    fixture_file = "../tests/sbc/support/fixtures/#{filename}"
    if File.exists?(fixture_file)
      return JSON::parse(File.read(fixture_file))
    else
      raise FixtureNotFound.new
    end
  end
def read_fake_url ( filename ) fixture_file = "../tests/sbc/support/fixtures/#{filename}" if File . exists? ( fixture_file ) return JSON :: parse ( File . read ( fixture_file ) ) else raise FixtureNotFound . new end end
Reads a fake URL from local fixtures
Reads a fake URL from local fixtures
filename
<not_specific>