require 'spec_helper'

describe NewProjectJob do
  before do
    @project = FactoryGirl.create(:project)
  end

  describe "#perform" do    
    before do
      NewProjectJob.perform(@project.id)
    end

    it "should generate an object key" do
      WebMock.should have_requested(:post, "http://localhost:7979/object")
    end
  end
end