administration-zero 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/administration_zero/version.rb +1 -1
- metadata +1 -2
- data/lib/generators/admin/scaffold/templates/system_test.rb.tt +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1316a668c7b1c18ded185a0252038796d231d23115594ae97d4305c8090db4
|
4
|
+
data.tar.gz: bc419055b433ddec809205a7d790f5eaee090be2c0457269ce5413fdc0716f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af52938675c49c71efdf66988b272d7b51c74251b7784d5c08e59759f44f047a311d2dd84a56f484b2317667c84e28f0b5fa3dcf87568eab3c90491d8419556
|
7
|
+
data.tar.gz: 53ab64eb30b1a614d002d4b590946857224f091bbce630b2ef64df42270326a4d26dacafeefe60ed356480a1fcc7200e05bcd76c02613a8722320f82ac82cc63
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administration-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/generators/admin/scaffold/templates/erb/new.html.erb.tt
|
86
86
|
- lib/generators/admin/scaffold/templates/erb/show.html.erb.tt
|
87
87
|
- lib/generators/admin/scaffold/templates/functional_test.rb.tt
|
88
|
-
- lib/generators/admin/scaffold/templates/system_test.rb.tt
|
89
88
|
homepage: https://github.com/lazaronixon/authentication-zero
|
90
89
|
licenses:
|
91
90
|
- MIT
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require "application_system_test_case"
|
2
|
-
|
3
|
-
class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
|
4
|
-
setup do
|
5
|
-
@admin_user = sign_in_admin_as(admin_users(:lazaro_nixon))
|
6
|
-
@<%= singular_table_name %> = <%= fixture_name %>(:one)
|
7
|
-
end
|
8
|
-
|
9
|
-
test "visiting the index" do
|
10
|
-
visit <%= index_helper(type: :url) %>
|
11
|
-
assert_selector "h1", text: "<%= human_name.pluralize %>"
|
12
|
-
end
|
13
|
-
|
14
|
-
test "should create <%= human_name.downcase %>" do
|
15
|
-
visit <%= index_helper(type: :url) %>
|
16
|
-
click_on "New <%= human_name.downcase %>"
|
17
|
-
|
18
|
-
<%- attributes_hash.each do |attr, value| -%>
|
19
|
-
<%- if boolean?(attr) -%>
|
20
|
-
check "<%= attr.humanize %>" if <%= value %>
|
21
|
-
<%- else -%>
|
22
|
-
fill_in "<%= attr.humanize %>", with: <%= value %>
|
23
|
-
<%- end -%>
|
24
|
-
<%- end -%>
|
25
|
-
click_on "Create <%= human_name %>"
|
26
|
-
|
27
|
-
assert_text "<%= human_name %> was successfully created"
|
28
|
-
end
|
29
|
-
|
30
|
-
test "should update <%= human_name %>" do
|
31
|
-
visit <%= show_helper(type: :url) %>
|
32
|
-
click_on "Edit <%= human_name.downcase %>", match: :first
|
33
|
-
|
34
|
-
<%- attributes_hash.each do |attr, value| -%>
|
35
|
-
<%- if boolean?(attr) -%>
|
36
|
-
check "<%= attr.humanize %>" if <%= value %>
|
37
|
-
<%- else -%>
|
38
|
-
fill_in "<%= attr.humanize %>", with: <%= value %>
|
39
|
-
<%- end -%>
|
40
|
-
<%- end -%>
|
41
|
-
click_on "Update <%= human_name %>"
|
42
|
-
|
43
|
-
assert_text "<%= human_name %> was successfully updated"
|
44
|
-
end
|
45
|
-
|
46
|
-
test "should destroy <%= human_name %>" do
|
47
|
-
visit <%= show_helper(type: :url) %>
|
48
|
-
page.accept_confirm { click_on "Delete <%= human_name.downcase %>" }
|
49
|
-
|
50
|
-
assert_text "<%= human_name %> was successfully destroyed"
|
51
|
-
end
|
52
|
-
end
|