2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2015-10-12 03:37:44 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2015-12-16 14:19:58 +00:00
|
|
|
RSpec.describe Mapping, type: :model do
|
2016-01-26 09:58:33 +00:00
|
|
|
it { is_expected.to belong_to :user }
|
|
|
|
it { is_expected.to belong_to :map }
|
|
|
|
it { is_expected.to belong_to :mappable }
|
|
|
|
it { is_expected.to validate_presence_of :xloc }
|
|
|
|
it { is_expected.to validate_presence_of :yloc }
|
|
|
|
it { is_expected.to validate_presence_of :map }
|
|
|
|
it { is_expected.to validate_presence_of :mappable }
|
2015-10-12 03:37:44 +00:00
|
|
|
end
|