Hi -- can I specify the block that should be called with a method?
Sort of like this:

    it "should bulk update the properties_params in groups of 50" do
      block = lambda do |params|
        SfProperty.put( :bulk_update, :sf_properties => params )
      end

      Util.should_receive( :do_to_in_groups_of ).with( @properties_params,
50, &block )

      do_call
    end

Or am I dreaming?
Cheers,
   Doug.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to