Skip to content

Commit

Permalink
Created model files for bishop, knight, and king
Browse files Browse the repository at this point in the history
  • Loading branch information
emestabillo committed Jul 19, 2017
1 parent 72e1fd3 commit 921e2aa
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/bishop.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Bishop < Piece
end
2 changes: 2 additions & 0 deletions app/models/king.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class King < Piece
end
2 changes: 2 additions & 0 deletions app/models/knight.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Knight < Piece
end
11 changes: 11 additions & 0 deletions test/fixtures/bishops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Read about fixtures at http://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
11 changes: 11 additions & 0 deletions test/fixtures/kings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Read about fixtures at http://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
11 changes: 11 additions & 0 deletions test/fixtures/knights.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Read about fixtures at http://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 changes: 7 additions & 0 deletions test/models/bishop_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class BishopTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
7 changes: 7 additions & 0 deletions test/models/king_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class KingTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
7 changes: 7 additions & 0 deletions test/models/knight_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class KnightTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

0 comments on commit 921e2aa

Please sign in to comment.