store and display favorite person by tiss_id

This commit is contained in:
Marco Zeisler
2020-04-21 18:06:07 +02:00
parent c32819d819
commit fbfc12e096
31 changed files with 153 additions and 88 deletions
@@ -0,0 +1,9 @@
require 'test_helper'
class Favorite::FavoritePersonControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get favorite_favorite_person_index_url
assert_response :success
end
end
@@ -0,0 +1,7 @@
require 'test_helper'
class FavoriteControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
@@ -0,0 +1,9 @@
require 'test_helper'
class Favorites::FavoritePersonControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get favorites_favorite_person_index_url
assert_response :success
end
end
+7
View File
@@ -0,0 +1,7 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
tiss_id: MyString
two:
tiss_id: MyString
+11
View File
@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
# This model initially had no columns defined. If you add columns to the
# 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
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class FavoritePersonTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
+7
View File
@@ -0,0 +1,7 @@
require 'test_helper'
class PersonTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end