Skip to content

Commit

Permalink
Change the script to run rake
Browse files Browse the repository at this point in the history
- Running rake will run the whole test suite, thus, running checking
  for all errors and tests that have been written.

AMEND 1
- Change the tabs in database.yml to spaces.

AMEND 2
- Edit a spelling error in the database.yml file.

AMEND 3
- Change the test slightly so as to assert the equality of the two ID's
  rather than the object itself.
  • Loading branch information
icyflame committed Apr 23, 2015
1 parent 6fb5bb0 commit 042a2ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ addons:
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml
script: 'true'
script: 'bundle exec rake'
deploy:
provider: heroku
api_key:
Expand Down
6 changes: 3 additions & 3 deletions config/database.yml.travis
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ development:
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adaptor: postgresql
database: travis_ci_test
username: postgres
adapter: postgresql
database: travis_ci_test
username: postgres

production:
<<: *default
Expand Down
4 changes: 2 additions & 2 deletions test/models/alumni_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class AlumniTest < ActiveSupport::TestCase
end

test "records_being_created" do
a = Alumni.where({ :name => "alumni1" })
assert_equal a, 10, "The ID is not equal"
a = Alumni.find(5)
assert_equal a.id, 5, "The ID is not equal"
end

# test "validations_of_columns" do
Expand Down

0 comments on commit 042a2ce

Please sign in to comment.