Sha256: 88c08d0b7cf550f348c1f978186e61de8639163aad220dd97414cde804d19788
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[spec_helper]) describe Radiustar::Packet do it "gen_authenticator generates a random string without /dev/urandom" do File.stub(:exist?).and_return(false) packet = Radiustar::Packet.new(nil, nil) packet.gen_authenticator.class.should == String end if File.exist?("/dev/urandom") # don't fail if specs are running on a platform without /dev/urandom it "gen_authenticator generates a random string with /dev/urandom" do packet = Radiustar::Packet.new(nil, nil) packet.gen_authenticator.class.should == String end end end
Version data entries
7 entries across 7 versions & 2 rubygems