Sha256: 253b8f3c2acadcd2e0c6a6e8094a5da34e6acfb136af37780f30a1502b666962

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

require File.expand_path('../spec_helper.rb', __FILE__)

describe Rack::Protection::Base do
  describe "#random_string" do
    it "outputs a string of 32 characters" do
      described_class.new(lambda {}).random_string.length.should == 32
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rack-protection-1.5.2 spec/base_spec.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rack-protection-1.5.1/spec/base_spec.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rack-protection-1.5.1/spec/base_spec.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rack-protection-1.5.1/spec/base_spec.rb
rack-protection-1.5.1 spec/base_spec.rb