require 'spec_helper'

describe Zone do

  let(:zone) { Factory :zone }

  context 'factory' do
    #let(:zone){ Factory :zone }

    it "should set zone members correctly" do
      zone.zone_members.count.should == 1
    end
  end

  context "#destroy" do
    before { zone.destroy }
    it "should destroy all zone members" do
      zone.zone_members.count.should == 0
    end
  end

end

require 'spec_helper'

describe Spree::Zone do

  let(:zone) { Factory :zone }

  context 'factory' do
    #let(:zone){ Factory :zone }

    it "should set zone members correctly" do
      zone.zone_members.count.should == 1
    end
  end

  context "#destroy" do
    before { zone.destroy }
    it "should destroy all zone members" do
      zone.zone_members.count.should == 0
    end
  end

end

Fix references in Zone model spec
Fix references in Zone model spec
