Sha256: 08b7f566ed6511ea1fd50bcac03eb3d5a782d88b53e834538210de306af39502
Contents?: true
Size: 904 Bytes
Versions: 4
Compression:
Stored size: 904 Bytes
Contents
module SecureHeaders describe XDownloadOptions do specify { expect(XDownloadOptions.new.name).to eq(XDO_HEADER_NAME)} specify { expect(XDownloadOptions.new.value).to eq("noopen")} specify { expect(XDownloadOptions.new('noopen').value).to eq('noopen')} specify { expect(XDownloadOptions.new(:value => 'noopen').value).to eq('noopen') } context "invalid configuration values" do it "accepts noopen" do expect { XDownloadOptions.new("noopen") }.not_to raise_error expect { XDownloadOptions.new(:value => "noopen") }.not_to raise_error end it "accepts nil" do expect { XDownloadOptions.new }.not_to raise_error end it "doesn't accept anything besides noopen" do expect { XContentTypeOptions.new("open") }.to raise_error end end end end
Version data entries
4 entries across 4 versions & 1 rubygems