feat: implement basic fairy tracker
This commit is contained in:
parent
1e46ad269e
commit
8109bacb0d
27 changed files with 290 additions and 7 deletions
23
test/controllers/fairy_controller_test.rb
Normal file
23
test/controllers/fairy_controller_test.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
require "test_helper"
|
||||
|
||||
class FairyControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get mark" do
|
||||
get fairy_mark_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get suggest" do
|
||||
get fairy_suggest_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get unmark" do
|
||||
get fairy_unmark_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get despawn" do
|
||||
get fairy_despawn_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
11
test/fixtures/fairies.yml
vendored
Normal file
11
test/fixtures/fairies.yml
vendored
Normal 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
test/models/fairy_test.rb
Normal file
7
test/models/fairy_test.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "test_helper"
|
||||
|
||||
class FairyTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue