simple_auth 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
data/lib/simple_auth/version.rb
CHANGED
@@ -55,6 +55,12 @@ describe ApplicationController do
|
|
55
55
|
session[:return_to].should == "/stub_resources?some=param"
|
56
56
|
end
|
57
57
|
|
58
|
+
it "should remove return to from session" do
|
59
|
+
get :index, :some => "param"
|
60
|
+
controller.send(:return_to, "/dashboard")
|
61
|
+
session[:return_to].should be_nil
|
62
|
+
end
|
63
|
+
|
58
64
|
it "should set warning message" do
|
59
65
|
get :index
|
60
66
|
flash[:alert].should == "You need to be logged"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: simple_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nando Vieira
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-28 00:00:00 -03:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|