Basic models set up
This commit is contained in:
parent
2bae7cd298
commit
5add3cf671
11 changed files with 234 additions and 0 deletions
21
test/fixtures/issues.yml
vendored
Normal file
21
test/fixtures/issues.yml
vendored
Normal 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
15
test/fixtures/reports.yml
vendored
Normal 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
|
7
test/models/issue_test.rb
Normal file
7
test/models/issue_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class IssueTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
7
test/models/report_test.rb
Normal file
7
test/models/report_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ReportTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue