Sha256: 05768277ffd429925620b9d17be841758e50922c34de32e5c121951db37531d8

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

describe Zone do

  it 'should create a region' do
    -> {  Zone.make! }.should_not raise_error
  end

  describe 'instance' do

    let(:zone) { Zone.make!(name: 'Coffee Makers') }

    it "should have a polymorphic relantionship with others" do
      zone.members.create(member: Nation.make!(name: "Brasil"))
      zone.should have(1).member
      Zone::Member.count.should eq(1)
    end


  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
geopolitical-0.8.3 spec/models/zone_spec.rb