Sha256: fa9d63d460ae3e281fa54f4e23308d46fc421eea9632f6d37936e9b4354d461f
Contents?: true
Size: 804 Bytes
Versions: 4
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:3000/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
4 entries across 4 versions & 1 rubygems