micro_sessions 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,25 +0,0 @@
1
- require "spec_helper"
2
-
3
- # Complex Stubbing does not do us any good here... relying on integration tests...
4
- describe MicroSessions::Helpers do
5
- # before do
6
- # @controller_class = Class.new(ActionController::Base)
7
- # @controller_class.stub(:micro_session_options).and_return(:param => "_msid")
8
- # @helpers = ActionView::Base.new
9
- # @helpers.stub(:controller).and_return(@controller_class.new)
10
- # @helpers.stub(:micro_session).and_return(mock(:id => "abc123"))
11
- # end
12
- #
13
- # it "should respond to #micro_session_hidden_field" do
14
- # @helpers.should respond_to(:micro_session_hidden_field)
15
- # end
16
- #
17
- # it "should render correct micro_session_hidden_field" do
18
- # @helpers.micro_session_hidden_field.should == %{<input id="_msid" name="_msid" type="hidden" value="abc123" />}
19
- # end
20
- #
21
- # TODO: This is way too complex to test, requires an enormous amount of stubbing... Need a real Rails app.
22
- # it "should render correct link_to with :micro_sessions => true" do
23
- # @helpers.url_for
24
- # end
25
- end