chris_lib 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/chris_lib/test_access.rb +2 -2
- data/lib/chris_lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 644d85e09356e803160f6562212ab9acc020c56a
|
|
4
|
+
data.tar.gz: 51a87933aff33327eea02d05f5dc82f84290b6b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c3d9047bde6f90c116d56ca4e04d54f2675d3c1560a612218ff07bfa4d9c17bc3570147b2c77c7db8a5e1cbdba304c4aecf4a7d93b818f20c9b2e301c810033
|
|
7
|
+
data.tar.gz: 6aa3a9ae320d90d650b0c57710e678d91bfc9429fdde61fa2a3f12dbc1d68c807a0b9ab1e67eb4a8af004ef57ab935d23965c20440574e0afdf86a9ab8b6357f
|
|
@@ -11,12 +11,12 @@ module TestAccess
|
|
|
11
11
|
def it_should_route_to(path,actions,flash_message=nil)
|
|
12
12
|
actions.each do |a|
|
|
13
13
|
it "should deny access to #{a}" do
|
|
14
|
-
get a.to_sym, id: 1
|
|
14
|
+
get a.to_sym, params: { id: 1}
|
|
15
15
|
expect(response).to redirect_to send(path)
|
|
16
16
|
end
|
|
17
17
|
if flash_message.present?
|
|
18
18
|
it "should have correct flash message for #{a}" do
|
|
19
|
-
get a, id: 1
|
|
19
|
+
get a, params: { id: 1}
|
|
20
20
|
expect(flash[:error]).to include flash_message
|
|
21
21
|
end
|
|
22
22
|
end
|
data/lib/chris_lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chris_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
89
|
version: '0'
|
|
90
90
|
requirements: []
|
|
91
91
|
rubyforge_project:
|
|
92
|
-
rubygems_version: 2.4.
|
|
92
|
+
rubygems_version: 2.4.8
|
|
93
93
|
signing_key:
|
|
94
94
|
specification_version: 4
|
|
95
95
|
summary: This an eclectic collection of methods. It include maths, datetime, and rspec
|