Skip to content
Browse files

add Encounter model.

  • Loading branch information...
1 parent 87d006a commit 3f963eebba4d4b2a275aea4516b3432d59ec7e20 @sakomoko committed Mar 6, 2013
Showing with 18 additions and 0 deletions.
  1. +7 −0 app/models/encounter.rb
  2. +6 −0 spec/factories/encounters.rb
  3. +5 −0 spec/models/encounter_spec.rb
View
7 app/models/encounter.rb
@@ -0,0 +1,7 @@
+class Encounter
+ include Mongoid::Document
+
+ belongs_to :field
+
+ field :probability, type: Integer, default: 0
+end
View
6 spec/factories/encounters.rb
@@ -0,0 +1,6 @@
+# Read about factories at https://github.com/thoughtbot/factory_girl
+
+FactoryGirl.define do
+ factory :encounter do
+ end
+end
View
5 spec/models/encounter_spec.rb
@@ -0,0 +1,5 @@
+require 'spec_helper'
+
+describe Encounter do
+ pending "add some examples to (or delete) #{__FILE__}"
+end

0 comments on commit 3f963ee

Please sign in to comment.
Something went wrong with that request. Please try again.