spec/base_crm/forecasting_spec.rb in basecrm-0.0.3 vs spec/base_crm/forecasting_spec.rb in basecrm-0.1.0
- old
+ new
@@ -15,12 +15,12 @@
end
end
describe ".fetch_for_deal" do
- let(:scope) { mock }
- let(:deal) { mock(:id => 444) }
- let(:result) { mock }
+ let(:scope) { double }
+ let(:deal) { double(:id => 444) }
+ let(:result) { double }
it "returns the scope" do
BaseCrm::Forecasting.should_receive(:scope).and_return(scope)
scope.should_receive(:get).
with("/api/v1/deals/#{deal.id}/forecasting.json").