about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dummy/db/schema.rb99
-rw-r--r--test/fixtures/pokeviewer/moves.yml9
-rw-r--r--test/fixtures/pokeviewer/pokemon.yml31
-rw-r--r--test/fixtures/pokeviewer/revision_moves.yml13
-rw-r--r--test/fixtures/pokeviewer/revisions.yml55
-rw-r--r--test/fixtures/pokeviewer/species.yml9
-rw-r--r--test/fixtures/pokeviewer/trainers.yml11
-rw-r--r--test/models/pokeviewer/move_test.rb9
-rw-r--r--test/models/pokeviewer/pokemon_test.rb9
-rw-r--r--test/models/pokeviewer/revision_move_test.rb9
-rw-r--r--test/models/pokeviewer/revision_test.rb9
-rw-r--r--test/models/pokeviewer/species_test.rb9
-rw-r--r--test/models/pokeviewer/trainer_test.rb9
13 files changed, 281 insertions, 0 deletions
diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb new file mode 100644 index 0000000..4b5ad80 --- /dev/null +++ b/test/dummy/db/schema.rb
@@ -0,0 +1,99 @@
1# This file is auto-generated from the current state of the database. Instead
2# of editing this file, please use the migrations feature of Active Record to
3# incrementally modify your database, and then regenerate this schema definition.
4#
5# Note that this schema.rb definition is the authoritative source for your
6# database schema. If you need to create the application database on another
7# system, you should be using db:schema:load, not running all the migrations
8# from scratch. The latter is a flawed and unsustainable approach (the more migrations
9# you'll amass, the slower it'll run and the greater likelihood for issues).
10#
11# It's strongly recommended that you check this file into your version control system.
12
13ActiveRecord::Schema.define(version: 20170917011258) do
14
15 create_table "pokeviewer_moves", force: :cascade do |t|
16 t.string "name", limit: 191, null: false
17 t.integer "pp", null: false
18 t.datetime "created_at", null: false
19 t.datetime "updated_at", null: false
20 t.index ["name"], name: "index_pokeviewer_moves_on_name", unique: true
21 end
22
23 create_table "pokeviewer_pokemon", force: :cascade do |t|
24 t.string "uuid", limit: 191, null: false
25 t.integer "species_id", null: false
26 t.integer "trainer_id"
27 t.string "key", limit: 191
28 t.string "ot_name", null: false
29 t.integer "ot_number", null: false
30 t.string "met_type", null: false
31 t.string "met_location"
32 t.integer "met_level", null: false
33 t.boolean "shiny", default: false, null: false
34 t.string "nature", null: false
35 t.string "gender", null: false
36 t.boolean "second_ability", null: false
37 t.string "unown_letter", limit: 1
38 t.datetime "created_at", null: false
39 t.datetime "updated_at", null: false
40 t.index ["key"], name: "index_pokeviewer_pokemon_on_key", unique: true
41 t.index ["species_id"], name: "index_pokeviewer_pokemon_on_species_id"
42 t.index ["trainer_id"], name: "index_pokeviewer_pokemon_on_trainer_id"
43 t.index ["uuid"], name: "index_pokeviewer_pokemon_on_uuid", unique: true
44 end
45
46 create_table "pokeviewer_revision_moves", force: :cascade do |t|
47 t.integer "revision_id", null: false
48 t.integer "move_id", null: false
49 t.integer "number", null: false
50 t.integer "pp_bonuses", default: 0, null: false
51 t.datetime "created_at", null: false
52 t.datetime "updated_at", null: false
53 t.index ["move_id"], name: "index_pokeviewer_revision_moves_on_move_id"
54 t.index ["revision_id", "number"], name: "index_pokeviewer_revision_moves_on_revision_id_and_number", unique: true
55 t.index ["revision_id"], name: "index_pokeviewer_revision_moves_on_revision_id"
56 end
57
58 create_table "pokeviewer_revisions", force: :cascade do |t|
59 t.integer "pokemon_id", null: false
60 t.integer "sequential_id", null: false
61 t.string "nickname", null: false
62 t.integer "experience", null: false
63 t.integer "level", null: false
64 t.integer "hp", null: false
65 t.integer "attack", null: false
66 t.integer "defense", null: false
67 t.integer "special_attack", null: false
68 t.integer "special_defense", null: false
69 t.integer "speed", null: false
70 t.integer "coolness", null: false
71 t.integer "beauty", null: false
72 t.integer "cuteness", null: false
73 t.integer "smartness", null: false
74 t.integer "toughness", null: false
75 t.integer "sheen", null: false
76 t.integer "hold_item"
77 t.datetime "created_at", null: false
78 t.datetime "updated_at", null: false
79 t.index ["pokemon_id", "sequential_id"], name: "index_pokeviewer_revisions_on_pokemon_id_and_sequential_id", unique: true
80 t.index ["pokemon_id"], name: "index_pokeviewer_revisions_on_pokemon_id"
81 end
82
83 create_table "pokeviewer_species", force: :cascade do |t|
84 t.string "name", limit: 191, null: false
85 t.datetime "created_at", null: false
86 t.datetime "updated_at", null: false
87 t.index ["name"], name: "index_pokeviewer_species_on_name", unique: true
88 end
89
90 create_table "pokeviewer_trainers", force: :cascade do |t|
91 t.string "game", null: false
92 t.string "name", limit: 191, null: false
93 t.integer "number", null: false
94 t.datetime "created_at", null: false
95 t.datetime "updated_at", null: false
96 t.index ["name", "number"], name: "index_pokeviewer_trainers_on_name_and_number", unique: true
97 end
98
99end
diff --git a/test/fixtures/pokeviewer/moves.yml b/test/fixtures/pokeviewer/moves.yml new file mode 100644 index 0000000..453cab6 --- /dev/null +++ b/test/fixtures/pokeviewer/moves.yml
@@ -0,0 +1,9 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 name: MyString
5 pp: 1
6
7two:
8 name: MyString
9 pp: 1
diff --git a/test/fixtures/pokeviewer/pokemon.yml b/test/fixtures/pokeviewer/pokemon.yml new file mode 100644 index 0000000..750cc53 --- /dev/null +++ b/test/fixtures/pokeviewer/pokemon.yml
@@ -0,0 +1,31 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 species: one
5 trainer: one
6 key: MyString
7 ot_name: MyString
8 ot_number: 1
9 met_type: MyString
10 met_location: MyString
11 met_level: 1
12 shiny: false
13 nature: MyString
14 gender: MyString
15 second_ability: false
16 unown_letter:
17
18two:
19 species: two
20 trainer: two
21 key: MyString
22 ot_name: MyString
23 ot_number: 1
24 met_type: MyString
25 met_location: MyString
26 met_level: 1
27 shiny: false
28 nature: MyString
29 gender: MyString
30 second_ability: false
31 unown_letter:
diff --git a/test/fixtures/pokeviewer/revision_moves.yml b/test/fixtures/pokeviewer/revision_moves.yml new file mode 100644 index 0000000..f70fda1 --- /dev/null +++ b/test/fixtures/pokeviewer/revision_moves.yml
@@ -0,0 +1,13 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 revision: one
5 move: one
6 number: 1
7 pp_bonuses: 1
8
9two:
10 revision: two
11 move: two
12 number: 1
13 pp_bonuses: 1
diff --git a/test/fixtures/pokeviewer/revisions.yml b/test/fixtures/pokeviewer/revisions.yml new file mode 100644 index 0000000..eddd53f --- /dev/null +++ b/test/fixtures/pokeviewer/revisions.yml
@@ -0,0 +1,55 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 pokemon: one
5 nickname: MyString
6 experience: 1
7 level: 1
8 hp: 1
9 attack: 1
10 defense: 1
11 special_attack: 1
12 special_defense: 1
13 speed: 1
14 coolness: 1
15 beauty: 1
16 cuteness: 1
17 smartness: 1
18 toughness: 1
19 sheen: 1
20 move1: one
21 move2: one
22 move3: one
23 move4: one
24 move1_pp: 1
25 move2_pp: 1
26 move3_pp: 1
27 move4_pp: 1
28 hold_item: 1
29
30two:
31 pokemon: two
32 nickname: MyString
33 experience: 1
34 level: 1
35 hp: 1
36 attack: 1
37 defense: 1
38 special_attack: 1
39 special_defense: 1
40 speed: 1
41 coolness: 1
42 beauty: 1
43 cuteness: 1
44 smartness: 1
45 toughness: 1
46 sheen: 1
47 move1: two
48 move2: two
49 move3: two
50 move4: two
51 move1_pp: 1
52 move2_pp: 1
53 move3_pp: 1
54 move4_pp: 1
55 hold_item: 1
diff --git a/test/fixtures/pokeviewer/species.yml b/test/fixtures/pokeviewer/species.yml new file mode 100644 index 0000000..e5cbf31 --- /dev/null +++ b/test/fixtures/pokeviewer/species.yml
@@ -0,0 +1,9 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 number: 1
5 name: MyString
6
7two:
8 number: 1
9 name: MyString
diff --git a/test/fixtures/pokeviewer/trainers.yml b/test/fixtures/pokeviewer/trainers.yml new file mode 100644 index 0000000..0675334 --- /dev/null +++ b/test/fixtures/pokeviewer/trainers.yml
@@ -0,0 +1,11 @@
1# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
3one:
4 game: MyString
5 name: MyString
6 number:
7
8two:
9 game: MyString
10 name: MyString
11 number:
diff --git a/test/models/pokeviewer/move_test.rb b/test/models/pokeviewer/move_test.rb new file mode 100644 index 0000000..8737c3f --- /dev/null +++ b/test/models/pokeviewer/move_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class MoveTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end
diff --git a/test/models/pokeviewer/pokemon_test.rb b/test/models/pokeviewer/pokemon_test.rb new file mode 100644 index 0000000..76b61cf --- /dev/null +++ b/test/models/pokeviewer/pokemon_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class PokemonTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end
diff --git a/test/models/pokeviewer/revision_move_test.rb b/test/models/pokeviewer/revision_move_test.rb new file mode 100644 index 0000000..7f716f8 --- /dev/null +++ b/test/models/pokeviewer/revision_move_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class RevisionMoveTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end
diff --git a/test/models/pokeviewer/revision_test.rb b/test/models/pokeviewer/revision_test.rb new file mode 100644 index 0000000..1f9e430 --- /dev/null +++ b/test/models/pokeviewer/revision_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class RevisionTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end
diff --git a/test/models/pokeviewer/species_test.rb b/test/models/pokeviewer/species_test.rb new file mode 100644 index 0000000..26f3218 --- /dev/null +++ b/test/models/pokeviewer/species_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class SpeciesTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end
diff --git a/test/models/pokeviewer/trainer_test.rb b/test/models/pokeviewer/trainer_test.rb new file mode 100644 index 0000000..72f3655 --- /dev/null +++ b/test/models/pokeviewer/trainer_test.rb
@@ -0,0 +1,9 @@
1require 'test_helper'
2
3module Pokeviewer
4 class TrainerTest < ActiveSupport::TestCase
5 # test "the truth" do
6 # assert true
7 # end
8 end
9end