Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FactoryGirl.define do
- factory :piece do
- color 'white'
- active true
- x_position 1
- y_position 1
- type ''
- association :game
- end
- factory :king do
- color 'white'
- active true
- x_position 5
- y_position 1
- type 'King'
- association :game
- end
- factory :queen do
- color 'white'
- active true
- x_position 1
- y_position 1
- type 'Queen'
- association :game
- end
- factory :rook do
- color 'white'
- active true
- x_position 1
- y_position 3
- type 'Rook'
- association :game
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement