Basic models set up

This commit is contained in:
Shrey 2015-05-16 14:08:50 +05:30 committed by Matt Amos
parent 2bae7cd298
commit 5add3cf671
11 changed files with 234 additions and 0 deletions

21
test/fixtures/issues.yml vendored Normal file
View file

@ -0,0 +1,21 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
reportable_type: MyString
reportable_id: 1
user_id: 1
status: 1
resolved_at: 2015-05-16 13:06:16
resolved_by: 1
created_at: 2015-05-16 13:06:16
updated_at: 2015-05-16 13:06:16
two:
reportable_type: MyString
reportable_id: 1
user_id: 1
status: 1
resolved_at: 2015-05-16 13:06:16
resolved_by: 1
created_at: 2015-05-16 13:06:16
updated_at: 2015-05-16 13:06:16

15
test/fixtures/reports.yml vendored Normal file
View file

@ -0,0 +1,15 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
issue_id: 1
user_id: 1
details: MyText
created_at: 2015-05-16 13:26:20
updated_at: 2015-05-16 13:26:20
two:
issue_id: 1
user_id: 1
details: MyText
created_at: 2015-05-16 13:26:20
updated_at: 2015-05-16 13:26:20

View file

@ -0,0 +1,7 @@
require 'test_helper'
class IssueTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View file

@ -0,0 +1,7 @@
require 'test_helper'
class ReportTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end