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
c2615229
Commit
c2615229
authored
Feb 21, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
環境変数を整理
parent
20408159
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
29 deletions
+13
-29
.env.example
+0
-10
.gitignore
+0
-1
config/database.yml.example
+4
-13
config/settings.yml.example
+4
-0
spec/controllers/concerns/rv/mailer_spec.rb
+5
-5
No files found.
.env.example
deleted
100755 → 0
View file @
20408159
#!/bin/sh
# SET YOUR ENV HERE.
export
GOOGLE_CLIENT_ID
=
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
export
GOOGLE_CLIENT_SECRET
=
"xxxxxxxxxxxxxxxxxxxxxxxx"
export
DB_TEST_USER
=
"user"
export
DB_TEST_PASS
=
"pass"
export
DB_DEVELOPMENT_USER
=
"user"
export
DB_DEVELOPMENT_PASS
=
"pass"
.gitignore
View file @
c2615229
...
@@ -23,6 +23,5 @@
...
@@ -23,6 +23,5 @@
/db/*.sql
/db/*.sql
# secret files
# secret files
.env
/config/database.yml
/config/database.yml
/config/settings.yml
/config/settings.yml
config/database.yml.example
View file @
c2615229
# SQLite version 3.x
# Read Me
# gem install sqlite3
# Copy this file to `database.yml` when you run first development.
#
# $ cp config/detabase.yml.example config/database.yml
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
development:
adapter: mysql2
adapter: mysql2
encoding: utf8
encoding: utf8
...
@@ -13,14 +12,6 @@ development:
...
@@ -13,14 +12,6 @@ development:
password: <%= ENV['DB_DEVELOPMENT_PASS'] %>
password: <%= ENV['DB_DEVELOPMENT_PASS'] %>
host: <%= ENV['DB_DEVELOPMENT_HOST'] %>
host: <%= ENV['DB_DEVELOPMENT_HOST'] %>
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
# test:
# adapter: sqlite3
# database: db/test.sqlite3
# pool: 5
# timeout: 5000
test:
test:
adapter: mysql2
adapter: mysql2
encoding: utf8
encoding: utf8
...
...
config/settings.yml.example
View file @
c2615229
# Read Me
# Copy this file to `settings.yml` when you run first development.
# $ cp config/settings.yml.example config/settings.yml
defaults: &defaults
defaults: &defaults
google_api:
google_api:
client_id: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
client_id: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
...
...
spec/controllers/concerns/rv/mailer_spec.rb
View file @
c2615229
...
@@ -9,23 +9,23 @@ describe RV::Mailer do
...
@@ -9,23 +9,23 @@ describe RV::Mailer do
let
(
:post
)
{
Post
.
create
title:
'ruby rspec'
,
body:
'This is first espec test: ruby'
}
let
(
:post
)
{
Post
.
create
title:
'ruby rspec'
,
body:
'This is first espec test: ruby'
}
it
'valid'
do
it
'valid'
do
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
'dummy@example.com'
)
}.
not_to
raise_error
(
ArgumentError
)
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
'dummy@example.com'
)
}.
not_to
raise_error
end
end
it
'missing post'
do
it
'missing post'
do
expect
{
klass
.
compose_mail
(
nil
,
user:
alice
,
to:
'dummy@example.com'
)
}.
to
raise_error
(
ArgumentError
)
expect
{
klass
.
compose_mail
(
nil
,
user:
alice
,
to:
'dummy@example.com'
)
}.
to
raise_error
end
end
it
'missing user'
do
it
'missing user'
do
expect
{
klass
.
compose_mail
(
post
,
user:
nil
,
to:
'dummy@example.com'
)
}.
to
raise_error
(
ArgumentError
)
expect
{
klass
.
compose_mail
(
post
,
user:
nil
,
to:
'dummy@example.com'
)
}.
to
raise_error
end
end
it
'missing to'
do
it
'missing to'
do
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
nil
)
}.
to
raise_error
(
ArgumentError
)
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
nil
)
}.
to
raise_error
end
end
it
'invalid to'
do
it
'invalid to'
do
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
'invalid.email'
)
}.
to
raise_error
(
ArgumentError
)
expect
{
klass
.
compose_mail
(
post
,
user:
alice
,
to:
'invalid.email'
)
}.
to
raise_error
end
end
end
end
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