mdavid613

Activity Graph

Page 1 of 1

2015-08-10

[07:28:10] mdavid613: has joined #ruby
[07:34:54] mdavid613: Quit: Leaving.
[07:38:33] mdavid613: has joined #ruby
[08:04:44] mdavid613: Quit: Leaving.
[15:09:40] mdavid613: has joined #ruby
[15:28:04] mdavid613: Quit: Leaving.
[15:58:53] mdavid613: has joined #ruby
[16:11:02] mdavid613: Quit: Leaving.
[16:20:58] mdavid613: has joined #ruby
[23:49:50] mdavid613: Quit: Leaving.

2015-08-09

[00:28:48] mdavid613: has joined #ruby
[00:46:28] mdavid613: Quit: Leaving.

2015-08-08

[21:15:42] mdavid613: has joined #ruby
[21:20:06] mdavid613: Client Quit
[22:21:37] mdavid613: has joined #ruby
[22:52:27] mdavid613: Quit: Leaving.
[22:55:44] mdavid613: has joined #ruby
[23:30:07] mdavid613: Quit: Leaving.

2015-08-07

[01:25:09] mdavid613: Quit: Leaving.
[05:55:25] mdavid613: has joined #ruby
[06:52:27] mdavid613: Quit: Leaving.
[15:50:02] mdavid613: has joined #ruby
[22:49:13] mdavid613: *.net *.split

2015-08-06

[02:01:35] mdavid613: Quit: Leaving.
[16:10:47] mdavid613: has joined #ruby
[17:52:33] mdavid613: Quit: Leaving.
[17:54:58] mdavid613: has joined #ruby
[18:24:55] mdavid613: Quit: Leaving.
[20:02:56] mdavid613: has joined #ruby

2015-08-05

[01:11:13] mdavid613: Quit: Leaving.
[03:21:52] mdavid613: has joined #ruby
[03:25:45] mdavid613: Client Quit
[16:26:08] mdavid613: has joined #ruby
[16:31:46] mdavid613: Quit: Leaving.
[16:37:57] mdavid613: has joined #ruby
[18:17:34] mdavid613: Quit: Leaving.
[18:21:18] mdavid613: has joined #ruby

2015-08-04

[16:22:48] mdavid613: has joined #ruby
[16:56:07] mdavid613: Quit: Leaving.
[16:57:28] mdavid613: has joined #ruby
[20:10:33] mdavid613: Quit: Leaving.
[20:27:51] mdavid613: has joined #ruby
[20:36:39] mdavid613: Quit: Leaving.
[20:40:22] mdavid613: has joined #ruby
[20:50:22] mdavid613: Quit: Leaving.
[20:53:36] mdavid613: has joined #ruby
[23:11:30] mdavid613: Quit: Leaving.
[23:30:43] mdavid613: has joined #ruby

2015-08-03

[01:46:39] mdavid613: has joined #ruby
[04:57:28] mdavid613: Quit: Leaving.
[05:22:13] mdavid613: has joined #ruby
[05:43:07] mdavid613: Quit: Leaving.

2015-08-02

[20:59:56] mdavid613: has joined #ruby
[21:06:02] mdavid613: Quit: Leaving.
[23:13:44] mdavid613: has joined #ruby
[23:36:46] mdavid613: Quit: Leaving.

2015-08-01

[01:34:12] mdavid613: Quit: Leaving.
[01:53:00] mdavid613: has joined #ruby
[02:05:22] mdavid613: Quit: Leaving.

2015-07-31

[01:05:15] mdavid613: Quit: Leaving.
[04:12:30] mdavid613: has joined #ruby
[04:22:26] mdavid613: Quit: Leaving.
[15:55:17] mdavid613: has joined #ruby
[16:08:18] mdavid613: Quit: Leaving.
[16:12:19] mdavid613: has joined #ruby

2015-07-30

[04:18:37] mdavid613: Quit: Leaving.
[15:59:09] mdavid613: has joined #ruby
[16:30:44] mdavid613: Quit: Leaving.
[16:31:45] mdavid613: has joined #ruby
[18:51:27] mdavid613: Quit: Leaving.
[18:53:52] mdavid613: has joined #ruby

2015-07-29

[02:00:58] mdavid613: Quit: Leaving.
[02:01:55] mdavid613: has joined #ruby
[02:03:17] mdavid613: Client Quit
[16:32:50] mdavid613: has joined #ruby

2015-07-28

[01:58:35] mdavid613: Quit: Leaving.
[15:45:16] mdavid613: has joined #ruby
[18:58:15] mdavid613: Quit: Leaving.
[20:16:36] mdavid613: has joined #ruby

2015-07-27

[02:16:53] mdavid613: has joined #ruby
[02:24:27] mdavid613: Quit: Leaving.
[15:14:03] mdavid613: has joined #ruby
[15:15:27] mdavid613: Client Quit
[16:36:27] mdavid613: has joined #ruby
[17:14:12] mdavid613: Read error: Connection reset by peer
[17:14:19] mdavid613: has joined #ruby
[22:11:38] mdavid613: Quit: Leaving.
[22:12:56] mdavid613: has joined #ruby

2015-07-26

[17:59:03] mdavid613: has joined #ruby
[18:18:47] mdavid613: Quit: Leaving.
[18:19:02] mdavid613: has joined #ruby
[20:53:44] mdavid613: Quit: Leaving.
[23:06:15] mdavid613: has joined #ruby
[23:22:47] mdavid613: Quit: Leaving.

2015-07-24

[01:23:30] mdavid613: has joined #ruby
[01:24:52] mdavid613: hey all, I'm using basic Test::Unit and Mocha for unit testing. I have a module utility method that both classes in the module use and I'm trying to stub it for testing purposes and not having any luck. Does anyone have any experience with this?
[01:33:12] mdavid613: zenspider: sorry for the lag here???this is as a result of refactoring. There was essentially a duplicative function in the previous two classes that was pulled out into the module
[01:35:09] mdavid613: no, because the refactored method is an http request handler so it goes out into httpclient and bombs
[01:35:31] mdavid613: I could put in valid auth data and uris and start up a local server and it would work
[01:35:41] mdavid613: but I would rather be able to mock the function return
[01:36:08] mdavid613: the function itself is testable like the previous duplicated versions were
[01:37:04] mdavid613: got it, but then it's not unit testing???then it's integration testing at that point
[01:37:32] mdavid613: I would think you should be able to mock anything in a dynamic language like Ruby???.also, I've been using ruby for maybe a month so I'm not sure
[01:37:48] mdavid613: but I've been doing dev for a while
[01:41:47] mdavid613: the question is how? I'm only mocking this one thing
[01:42:06] mdavid613: I guess I need to find a good concrete example of stubbing
[01:42:23] mdavid613: I was doing the .any_instance.expects(:symbol).with().returns()
[01:42:29] mdavid613: and that doesn't work on a module method
[01:42:56] mdavid613: the only thing I see is Module.mocha.expects(:symbol).with().returns(), but that doesn't seem to work
[01:43:13] mdavid613: nice, I may check that out a little later tonight :)
[01:44:20] mdavid613: in the class call? the module method is defined with self.<method> so I can call directly
[01:44:42] mdavid613: without having to include the module itself
[01:45:48] mdavid613: that's the only thing I didn't try
[01:45:56] mdavid613: and I should've tried it first
[01:46:26] mdavid613: I also didn't try thigs, so you're correct :)
[01:47:44] mdavid613: definitely, this is my first foray into Ruby as I'm writing an API client to send to people in Ruby
[01:48:00] mdavid613: just finished the Go client earlier today???loads of fun as well
[01:49:25] mdavid613: thanks very much sir! :-D
[01:59:09] mdavid613: Quit: Leaving.
[03:03:17] mdavid613: has joined #ruby
[03:21:27] mdavid613: Quit: Leaving.
[12:26:47] mdavid613: has joined #ruby
[12:56:05] mdavid613: Quit: Leaving.
[14:59:02] mdavid613: has joined #ruby
[15:39:12] mdavid613: Quit: Leaving.
[15:58:11] mdavid613: has joined #ruby
[23:11:17] mdavid613: Read error: Connection reset by peer

2015-06-11

[22:10:17] mdavid613: has joined #ruby
[22:11:22] mdavid613: has left #ruby: ()