```ruby
require 'spec_helper'

describe Event do
  context ".occurs_first" do
    it "should sort the next to occur first" do
      late_event = FactoryGirl.create(:event, :occurs_at => 5.days.from_now)
      early_event = FactoryGirl.create(:event, :occurs_at => 1.day.from_now)

      described_class.occurs_first.should == [early_event, late_event]
    end
  end

  context ".active" do
    it "should find events from the future!" do
      ev = FactoryGirl.create(:event, :occurs_at => 5.days.from_now)
      described_class.active.should == [ev]
    end

    it "should include events from today" do
      ev = FactoryGirl.create(:event)
      described_class.active.should == [ev]
    end

    it "should not inclue events from the past" do
      Timecop.freeze(2.days.ago)
      ev = FactoryGirl.create(:event, :occurs_at => Time.current)
      Timecop.return

      described_class.active.should be_empty
    end
  end
end
```

Add spec of mass assigment on Event
user
```ruby
require 'spec_helper'

describe Event do

  describe "mass assignment" do

    context "allowed" do
      [:name, :description, :occurs_at, :picture, :url, :twitter, :user_id].each do |attr|
        it { should allow_mass_assignment_of(attr) }
      end
    end

    context "not allowed" do
      [:id, :created_at, :updated_at, :starts_votes_at, :end_votes_at, :slug,
       :proposals_count, :closed_at].each do |attr|
        it { should_not allow_mass_assignment_of(attr) }
      end
    end
  end

  context ".occurs_first" do
    it "should sort the next to occur first" do
      late_event = FactoryGirl.create(:event, :occurs_at => 5.days.from_now)
      early_event = FactoryGirl.create(:event, :occurs_at => 1.day.from_now)

      described_class.occurs_first.should == [early_event, late_event]
    end
  end

  context ".active" do
    it "should find events from the future!" do
      ev = FactoryGirl.create(:event, :occurs_at => 5.days.from_now)
      described_class.active.should == [ev]
    end

    it "should include events from today" do
      ev = FactoryGirl.create(:event)
      described_class.active.should == [ev]
    end

    it "should not inclue events from the past" do
      Timecop.freeze(2.days.ago)
      ev = FactoryGirl.create(:event, :occurs_at => Time.current)
      Timecop.return

      described_class.active.should be_empty
    end
  end
end
```
assistant