This commit is contained in:
34
test/fixtures/accesses.yml
vendored
Normal file
34
test/fixtures/accesses.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
david_handbook:
|
||||
user: david
|
||||
book: handbook
|
||||
level: editor
|
||||
|
||||
david_manual:
|
||||
user: david
|
||||
book: manual
|
||||
level: editor
|
||||
|
||||
jason_handbook:
|
||||
user: jason
|
||||
book: handbook
|
||||
level: editor
|
||||
|
||||
jason_manual:
|
||||
user: jason
|
||||
book: manual
|
||||
level: editor
|
||||
|
||||
jz_handbook:
|
||||
user: jz
|
||||
book: handbook
|
||||
level: reader
|
||||
|
||||
jz_manual:
|
||||
user: jz
|
||||
book: manual
|
||||
level: reader
|
||||
|
||||
kevin_handbook:
|
||||
user: kevin
|
||||
book: handbook
|
||||
level: editor
|
||||
3
test/fixtures/accounts.yml
vendored
Normal file
3
test/fixtures/accounts.yml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
signal:
|
||||
name: 37signals
|
||||
join_code: cs3s-enl1-EKC3
|
||||
9
test/fixtures/action_text/markdowns.yml
vendored
Normal file
9
test/fixtures/action_text/markdowns.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
welcome:
|
||||
record: welcome (Page)
|
||||
name: body
|
||||
content: This is _such_ a great handbook.
|
||||
|
||||
summary:
|
||||
record: summary (Page)
|
||||
name: body
|
||||
content: Thanks for reading!
|
||||
4
test/fixtures/active_storage/attachments.yml
vendored
Normal file
4
test/fixtures/active_storage/attachments.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
handbook_reading_image:
|
||||
name: image
|
||||
record: reading (Picture)
|
||||
blob: handbook_reading_image_blob
|
||||
1
test/fixtures/active_storage/blobs.yml
vendored
Normal file
1
test/fixtures/active_storage/blobs.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
handbook_reading_image_blob: <%= ActiveStorage::FixtureSet.blob filename: "reading.webp", service_name: "test" %>
|
||||
7
test/fixtures/books.yml
vendored
Normal file
7
test/fixtures/books.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
handbook:
|
||||
title: Handbook
|
||||
slug: handbook
|
||||
|
||||
manual:
|
||||
title: Manual
|
||||
slug: manual
|
||||
0
test/fixtures/files/.keep
vendored
Normal file
0
test/fixtures/files/.keep
vendored
Normal file
BIN
test/fixtures/files/reading.webp
vendored
Normal file
BIN
test/fixtures/files/reading.webp
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 280 KiB |
BIN
test/fixtures/files/white-rabbit.webp
vendored
Normal file
BIN
test/fixtures/files/white-rabbit.webp
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
27
test/fixtures/leaves.yml
vendored
Normal file
27
test/fixtures/leaves.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
welcome_section:
|
||||
book: handbook
|
||||
title: The Welcome Section
|
||||
leafable: welcome (Section)
|
||||
position_score: 1
|
||||
status: active
|
||||
|
||||
welcome_page:
|
||||
book: handbook
|
||||
title: Welcome to The Handbook!
|
||||
leafable: welcome (Page)
|
||||
position_score: 2
|
||||
status: active
|
||||
|
||||
summary_page:
|
||||
book: handbook
|
||||
title: Summary
|
||||
leafable: summary (Page)
|
||||
position_score: 3
|
||||
status: active
|
||||
|
||||
reading_picture:
|
||||
book: handbook
|
||||
title: Reading
|
||||
leafable: reading (Picture)
|
||||
position_score: 4
|
||||
status: active
|
||||
4
test/fixtures/pages.yml
vendored
Normal file
4
test/fixtures/pages.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
welcome: {}
|
||||
|
||||
summary: {}
|
||||
|
||||
1
test/fixtures/pictures.yml
vendored
Normal file
1
test/fixtures/pictures.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
reading: {}
|
||||
1
test/fixtures/sections.yml
vendored
Normal file
1
test/fixtures/sections.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
welcome: {}
|
||||
25
test/fixtures/users.yml
vendored
Normal file
25
test/fixtures/users.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<% password_digest = BCrypt::Password.create("secret123456") %>
|
||||
|
||||
david:
|
||||
name: David
|
||||
email_address: david@37signals.com
|
||||
password_digest: <%= password_digest %>
|
||||
role: administrator
|
||||
|
||||
jason:
|
||||
name: Jason
|
||||
email_address: jason@37signals.com
|
||||
password_digest: <%= password_digest %>
|
||||
role: administrator
|
||||
|
||||
jz:
|
||||
name: JZ
|
||||
email_address: jz@37signals.com
|
||||
password_digest: <%= password_digest %>
|
||||
role: member
|
||||
|
||||
kevin:
|
||||
name: Kevin
|
||||
email_address: kevin@37signals.com
|
||||
password_digest: <%= password_digest %>
|
||||
role: member
|
||||
Reference in New Issue
Block a user