disclaimer 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +13 -1
- data/lib/disclaimer.rb +10 -0
- data/lib/disclaimer/version.rb +8 -2
- data/lib/rails/actionpack/lib/action_controller/base.rb +5 -1
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -484
- data/test/dummy/log/test.log +3847 -9910
- data/test/dummy/test/functional/sample_controller_test.rb +2 -1
- metadata +2 -2
@@ -9,7 +9,8 @@ class SampleControllerTest < ActionController::TestCase
|
|
9
9
|
def test_index_default_redirect
|
10
10
|
get :index
|
11
11
|
assert_redirected_to("/disclaimer/documents/#{@document.name}")
|
12
|
-
|
12
|
+
path_to_sample_index = "http://#{request.host}/"
|
13
|
+
assert_equal({@document.name.to_sym => path_to_sample_index}, session[:disclaimer])
|
13
14
|
end
|
14
15
|
|
15
16
|
def test_index_with_disclaimer_accepted
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disclaimer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|