Skip to content

Commit

Permalink
Updated tests and fixtures to have users and associated quizzes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Nov 2, 2018
1 parent 5994d37 commit 3587d74
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/fixtures/quizzes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
one:
title: Rails MVC
description: Rails MVC blah blah blah.
owner: one

two:
title: Git and GitHub
description: Git and Github blah blah blah.
owner: one
10 changes: 5 additions & 5 deletions test/fixtures/users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
one:
email: user1@email.com

two:
email: user2@email.com
7 changes: 7 additions & 0 deletions test/models/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
require 'test_helper'

class UserTest < ActiveSupport::TestCase

# test "the truth" do
# assert true
# end

test "should be valid user" do
one = users(:one)
assert one.valid?
end

end

0 comments on commit 3587d74

Please sign in to comment.