Skip to content
Snippets Groups Projects
Commit a5ed7424 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

testing application model

parent 628b22d0
No related branches found
No related tags found
No related merge requests found
require 'test_helper' require 'test_helper'
class ApplicationTest < ActiveSupport::TestCase class ApplicationTest < ActiveSupport::TestCase
# test "the truth" do should belong_to :user
# assert true should validate_presence_of(:domain)
# end should validate_presence_of(:application_id)
end end
...@@ -51,6 +51,7 @@ class UserTest < ActiveSupport::TestCase ...@@ -51,6 +51,7 @@ class UserTest < ActiveSupport::TestCase
should have_many :shares should have_many :shares
should have_many :follows should have_many :follows
should have_many :reviews should have_many :reviews
should have_many :applications
test 'an user can follow another user' do test 'an user can follow another user' do
john = users(:john) john = users(:john)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment