Sha256: f47bf2a44395da36e02f4970ae529746062274af5ea0493e1012b08b88e865fb
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' class Controller include AbPanel::ControllerAdditions def session @session ||= {} end end describe AbPanel::ControllerAdditions do let(:controller) { Controller.new } describe "#distinct_id" do let(:cookies) { {} } before { expect(controller).to receive_message_chain(:cookies, :signed).and_return(cookies) } subject { controller.distinct_id } it { is_expected.to match /^([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])([A-Z]|[0-9])$/ } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ab_panel-0.4.1 | spec/ab_panel/controller_additions_spec.rb |
ab_panel-0.4.0 | spec/ab_panel/controller_additions_spec.rb |