Created
February 14, 2016 19:41
-
-
Save hoorayimhelping/178cca04c8e6f37759b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.editorconfig b/.editorconfig | |
| new file mode 100644 | |
| index 0000000..5760be5 | |
| --- /dev/null | |
| +++ b/.editorconfig | |
| @@ -0,0 +1,12 @@ | |
| +# http://editorconfig.org | |
| +root = true | |
| + | |
| +[*] | |
| +indent_style = space | |
| +indent_size = 2 | |
| +charset = utf-8 | |
| +trim_trailing_whitespace = true | |
| +insert_final_newline = true | |
| + | |
| +[*.md] | |
| +trim_trailing_whitespace = false | |
| diff --git a/spec/controllers/postgresql/databases_controller_spec.rb b/spec/controllers/postgresql/databases_controller_spec.rb | |
| index 81aa7a2..a0ef9f8 100644 | |
| --- a/spec/controllers/postgresql/databases_controller_spec.rb | |
| +++ b/spec/controllers/postgresql/databases_controller_spec.rb | |
| @@ -4,8 +4,13 @@ RSpec.describe PostgreSQL::DatabasesController, type: :controller do | |
| describe 'GET index' do | |
| context 'inexistent deployment' do | |
| - before { get :index, account_slug: 'nice-co', deployment_id: 12345 } | |
| - it { expect(response.status).to eq(404) } | |
| + before do | |
| + get :index, account_slug: 'nice-co', deployment_id: 12345 | |
| + end | |
| + | |
| + it 'responds with a 404' do | |
| + expect(response.status).to eq(404) | |
| + end | |
| end | |
| end | |
| diff --git a/spec/controllers/postgresql/tables_controller_spec.rb b/spec/controllers/postgresql/tables_controller_spec.rb | |
| index b0806f6..50ca897 100644 | |
| --- a/spec/controllers/postgresql/tables_controller_spec.rb | |
| +++ b/spec/controllers/postgresql/tables_controller_spec.rb | |
| @@ -4,8 +4,13 @@ RSpec.describe PostgreSQL::TablesController, type: :controller do | |
| describe 'GET index' do | |
| context 'inexistent database' do | |
| - before { get :index, account_slug: 'nice-co', deployment_id: 1234, database_name: 'hello' } | |
| - it { expect(response.status).to eq(404) } | |
| + before do | |
| + get :index, account_slug: 'nice-co', deployment_id: 1234, database_name: 'hello' | |
| + end | |
| + | |
| + it 'responds with a 404' do | |
| + expect(response.status).to eq(404) | |
| + end | |
| end | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment