Skip to content

Commit

Permalink
add Encounter model.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakomoko committed Mar 6, 2013
1 parent 87d006a commit 3f963ee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/models/encounter.rb
@@ -0,0 +1,7 @@
class Encounter
include Mongoid::Document

belongs_to :field

field :probability, type: Integer, default: 0
end
6 changes: 6 additions & 0 deletions 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
5 changes: 5 additions & 0 deletions 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.