Sha256: f7464d936722331cf150d9890b1df073e423131a61aa230824ae707e3ff20815
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe SimpleAuth::Helper, :type => :helper do it "should include module" do ApplicationController.included_modules.include?(SimpleAuth::Helper) end it "should render block when user is logged" do helper.should_receive(:logged_in?).and_return(true) helper.when_logged { "logged" }.should == "logged" end it "should not render block when user is unlogged" do helper.should_receive(:logged_in?).and_return(false) helper.when_logged { "logged" }.should be_nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_auth-0.1.6 | spec/simple_auth/helper_spec.rb |