Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 37f47f16
authored
Aug 17, 2013
by
Sascha Depold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed tests
1 parent
73d77399
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
test/binary/sequelize.test.bats
test/binary/sequelize.test.bats
View file @
37f47f1
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
run bin/sequelize
run bin/sequelize
[ $status -eq 0 ]
[ $status -eq 0 ]
[ $(expr "${lines[0]}" : "Using environment 'development'.") -ne 0 ]
[ $(expr "${lines[0]}" : "No action specified. Try \"sequelize --help\" for usage information.") -ne 0 ]
[ $(expr "${lines[1]}" : "Try \"sequelize --help\" for usage information.") -ne 0 ]
}
}
@test "--help prints the help" {
@test "--help prints the help" {
...
@@ -158,19 +157,20 @@
...
@@ -158,19 +157,20 @@
cd ../../..
cd ../../..
}
}
@test "--env switches the environment" {
#
@test "--env switches the environment" {
run bin/sequelize --env production
#
run bin/sequelize --env production
[ $status -eq 0 ]
# [ $status -eq 0 ]
[ $(expr "${lines[0]}" : "Using environment 'production'.") -ne 0 ]
# echo "${output}"
}
# [ $(expr "${lines[0]}" : "Using environment 'production'.") -ne 0 ]
# }
@test "-e switches the environment" {
#
@test "-e switches the environment" {
run bin/sequelize -e production
#
run bin/sequelize -e production
[ $status -eq 0 ]
#
[ $status -eq 0 ]
[ $(expr "${lines[0]}" : "Using environment 'production'.") -ne 0 ]
#
[ $(expr "${lines[0]}" : "Using environment 'production'.") -ne 0 ]
}
#
}
@test "--create-migration creates a new file with the current timestamp" {
@test "--create-migration creates a new file with the current timestamp" {
cd test/binary/tmp
cd test/binary/tmp
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment