simple_sign_in 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/simple_sign_in/login_controller.rb +18 -1
- data/lib/simple_sign_in/controller_methods.rb +1 -1
- data/lib/simple_sign_in/engine.rb +0 -5
- data/lib/simple_sign_in/version.rb +1 -1
- data/spec/controllers/simple_sign_in/login_controller_spec.rb +19 -0
- data/spec/dummy/log/development.log +805 -0
- data/spec/dummy/log/test.log +1335 -0
- data/spec/features/simple_sign_in_login_flows_spec.rb +6 -0
- metadata +2 -2
@@ -38,5 +38,11 @@ describe "LoginFlow" do
|
|
38
38
|
ApplicationController.class_eval("@@simple_sign_in_envs = nil")
|
39
39
|
end
|
40
40
|
|
41
|
+
it "should raise an error if environment variables are missing" do
|
42
|
+
ENV['SIMPLE_SIGN_IN_LOGIN'] = nil
|
43
|
+
expect { visit "/" }.to raise_error
|
44
|
+
ENV['SIMPLE_SIGN_IN_LOGIN'] = @login
|
45
|
+
end
|
46
|
+
|
41
47
|
end
|
42
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_sign_in
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Izhar Gavish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|