Sha256: b721d3296ea7ad2149db405cb6222c94aaa818fe08cf84861c0436c5f6840fc5

Contents?: true

Size: 804 Bytes

Versions: 18

Compression:

Stored size: 804 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'

describe "Libgss::AssetRequest" do
  before(:all) do
    request_fixture_load("01_basic")
  end

  let(:network) do
    network = new_network
    network.public_asset_url_prefix = "http://localhost:4000/a/"
    network.login
    network
  end

  describe "public asset" do
    it "valid" do
      req = network.new_public_asset_request("Default.png")
      req.send_request
      req.response_data.should == IO.binread(File.expand_path("../../public_assets/Default.png", __FILE__))
    end
  end

  describe "protected asset" do
    it "valid" do
      req = network.new_protected_asset_request("Icon.png")
      req.send_request
      req.response_data.should == IO.binread(File.expand_path("../../protected_assets/Icon.png", __FILE__))
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
libgss-0.11.0 spec/libgss/asset_request_spec.rb
libgss-0.10.0 spec/libgss/asset_request_spec.rb
libgss-0.9.0 spec/libgss/asset_request_spec.rb
libgss-0.8.4 spec/libgss/asset_request_spec.rb
libgss-0.8.3 spec/libgss/asset_request_spec.rb
libgss-0.8.2 spec/libgss/asset_request_spec.rb
libgss-0.8.1 spec/libgss/asset_request_spec.rb
libgss-0.8.0 spec/libgss/asset_request_spec.rb
libgss-0.7.6 spec/libgss/asset_request_spec.rb
libgss-0.7.5 spec/libgss/asset_request_spec.rb
libgss-0.7.4 spec/libgss/asset_request_spec.rb
libgss-0.7.3 spec/libgss/asset_request_spec.rb
libgss-0.7.2 spec/libgss/asset_request_spec.rb
libgss-0.7.1 spec/libgss/asset_request_spec.rb
libgss-0.7.0 spec/libgss/asset_request_spec.rb
libgss-0.6.2 spec/libgss/asset_request_spec.rb
libgss-0.6.1 spec/libgss/asset_request_spec.rb
libgss-0.6.0 spec/libgss/asset_request_spec.rb