[rspec-users] Testing Custom Methods

2011-11-12 Thread Tony Spore
rst end end I have this output - As if I'm not hitting the method correctly - Mock "Record_1002" received unexpected message :save_cf_data with ({"final_outputs"=>[{"birth_day"=>["3"]}]}) -Thanks, Tony Spore ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Testing Custom Methods

2011-11-12 Thread Tony Spore
not feeding into the method my params. How would it be best to do that? I am right now just trying to use rspec with no additional params. Thanks again! -Thanks, Tony Spore On Sat, Nov 12, 2011 at 2:14 PM, David Chelimsky wrote: > On Nov 12, 2011, at 3:33 PM, Tony Spore wrote:

Re: [rspec-users] Testing Custom Methods

2011-11-13 Thread Tony Spore
hat I can't figure out how to test. - https://gist.github.com/1362863 So I am expecting it to send in my result, but instead the test has nil. -Thanks, Tony Spore On Sun, Nov 13, 2011 at 8:12 AM, David Chelimsky wrote: > On Nov 12, 2011, at 6:27 PM, Tony Spore wrote: > > > &

Re: [rspec-users] Testing Custom Methods

2011-11-13 Thread Tony Spore
Thanks David. I am getting a long way now. -Thanks, Tony Spore CEO SaasSoft LLC (805) 253-1277 saassoft.com On Sun, Nov 13, 2011 at 4:29 PM, David Chelimsky wrote: > > On Nov 13, 2011, at 4:54 PM, Tony Spore wrote: > > On Sun, Nov 13, 2011 at 8:12 AM, David Chelimsky wrote: &g

[rspec-users] Testing Custom methods

2011-11-14 Thread Tony Spore
I am attempting to test a custom method, and totally bombing out. describe Record do describe '#save_cf_data' do before :each do @record = mock_model(Record) end it "should have a birthday" do @record.save_cf_data({"final_outputs"=>["birth_day"=>["3"]]}) @record.bir

Re: [rspec-users] Testing Custom Methods

2011-11-15 Thread Tony Spore
On Mon, Nov 14, 2011 at 11:49 PM, Justin Ko wrote: > Tony, this text right here is considered "top posting" because it is > *above* the previous posts. Now, scroll down and you'll see my "bottom > post". > > On Nov 13, 2011, at 11:03 PM, Tony Spore wrote: