Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
da863c06
Commit
da863c06
authored
Mar 10, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix travis-ci
parent
05aea730
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
7 deletions
+17
-7
app/controllers/concerns/rv/mailer.rb
+1
-1
app/decorators/post_decorator.rb
+8
-0
app/views/home/login.html.slim
+1
-0
app/views/posts/index.html.slim
+1
-0
spec/acceptance/access.feature
+6
-6
No files found.
app/controllers/concerns/rv/mailer.rb
View file @
da863c06
...
@@ -40,7 +40,7 @@ module RV::Mailer
...
@@ -40,7 +40,7 @@ module RV::Mailer
template
=
File
.
open
(
path
).
read
template
=
File
.
open
(
path
).
read
html_body
=
template
html_body
=
template
.
sub
(
'__POST_URL__'
,
Settings
.
rendezvous
.
app_host
+
post
_path
(
post
)
)
.
sub
(
'__POST_URL__'
,
Settings
.
rendezvous
.
app_host
+
post
.
decorate
.
show_path
)
.
sub
(
'__HTML_TITLE__'
,
h_application_format_markdown
(
post
.
title
))
.
sub
(
'__HTML_TITLE__'
,
h_application_format_markdown
(
post
.
title
))
.
sub
(
'__HTML_BODY__'
,
h_application_format_markdown
(
post
.
body
))
.
sub
(
'__HTML_BODY__'
,
h_application_format_markdown
(
post
.
body
))
.
sub
(
'__RV_URL__'
,
Settings
.
rendezvous
.
app_host
+
'/'
)
.
sub
(
'__RV_URL__'
,
Settings
.
rendezvous
.
app_host
+
'/'
)
...
...
app/decorators/post_decorator.rb
0 → 100644
View file @
da863c06
class
PostDecorator
<
Draper
::
Decorator
delegate_all
def
show_path
h
.
post_path
(
model
)
end
end
app/views/home/login.html.slim
View file @
da863c06
/! view:home/login
.login
.login
.container.marketing
.container.marketing
.row
style
=
(
"margin-top: 40px"
)
.row
style
=
(
"margin-top: 40px"
)
...
...
app/views/posts/index.html.slim
View file @
da863c06
/! view:post/index
.row
.row
#sidebar
.col-xs-6.col-md-4
role
=
"navigation"
#sidebar
.col-xs-6.col-md-4
role
=
"navigation"
ul
.nav.nav-tabs
ul
.nav.nav-tabs
...
...
spec/acceptance/access.feature
View file @
da863c06
...
@@ -3,12 +3,12 @@ Feature: アクセス制限
...
@@ -3,12 +3,12 @@ Feature: アクセス制限
Scenario
:
非ログイン --> TOPページ
Scenario
:
非ログイン --> TOPページ
When
visit '/'
When
visit '/'
Then
response code is 200
Then
response code is 200
Then response includes '<!--
view
:
home/login
-->'
Then response includes '<!--
view
:
home/login
-->'
Scenario
:
非ログイン --> postsページ
Scenario
:
非ログイン --> postsページ
When
visit '/posts'
When
visit '/posts'
Then
response code is 200
Then
response code is 200
Then response includes '<!--
view
:
home/login
-->'
Then response includes '<!--
view
:
home/login
-->'
# Scenario: 禁止ユーザーログイン --> TOPページ
# Scenario: 禁止ユーザーログイン --> TOPページ
# Given login via google with 'taro@example.com'
# Given login via google with 'taro@example.com'
...
@@ -19,23 +19,23 @@ Feature: アクセス制限
...
@@ -19,23 +19,23 @@ Feature: アクセス制限
# Given login via google with 'taro@example.com'
# Given login via google with 'taro@example.com'
# When visit '/posts'
# When visit '/posts'
# Then response code is 200
# Then response code is 200
# Then response includes '<!--
view:home/login
-->'
# Then response includes '<!--
view:home/login
-->'
Scenario
:
ログイン --> TOPページ
Scenario
:
ログイン --> TOPページ
Given
login
Given
login
When
visit '/'
When
visit '/'
Then
response code is 200
Then
response code is 200
Then response includes '<!--
view
:
post/index
-->'
Then response includes '<!--
view
:
post/index
-->'
Scenario
:
ログイン --> postsページ
Scenario
:
ログイン --> postsページ
Given
login
Given
login
When
visit '/posts'
When
visit '/posts'
Then
response code is 200
Then
response code is 200
Then response includes '<!--
view
:
post/index
-->'
Then response includes '<!--
view
:
post/index
-->'
Scenario
:
ログイン --> ログアウト
Scenario
:
ログイン --> ログアウト
Given
login
Given
login
When
logout
When
logout
Then
response code is 200
Then
response code is 200
Then response includes '<!--
view
:
home/login
-->'
Then response includes '<!--
view
:
home/login
-->'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment