Sha256: ca256ba558996da0af8170eace108c21ee1f5bfb29a01b20c9fc005746ef05a4
Contents?: true
Size: 800 Bytes
Versions: 3
Compression:
Stored size: 800 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Pancake::Mixins::RequestHelper do before do class ::FooBar include Pancake::Mixins::RequestHelper end end after do clear_constants :FooBar end describe "logger" do before do @logger = mock("logger") @app = FooBar.new @app.env = {Pancake::Constants::ENV_LOGGER_KEY => @logger} end it "should access the rack.logger variable when using" do @logger.should_receive(:foo) @app.logger.foo end end describe "v" do it "should store the data put into v into the env" do env = {} foo = FooBar.new foo.env = env foo.v[:data] = :some_data env[Pancake::Mixins::RequestHelper::VAULT_KEY][:data].should == :some_data end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pancake-0.1.13 | spec/pancake/mixins/request_helper_spec.rb |
pancake-0.1.12 | spec/pancake/mixins/request_helper_spec.rb |
pancake-0.1.10 | spec/pancake/mixins/request_helper_spec.rb |