02:17
ashley_moran joined
04:38
jschoolcraft joined
04:47
thebluecasket joined
05:24
thebluecasket joined
07:13
<path[l]>
hi how do I check if one hash contains another with rspec?
07:14
<technicalpickles>
hash.should have_key(:blah)
07:14
<technicalpickles>
path[l]: ^
07:15
<path[l]>
so I run it in a loop?
07:15
<technicalpickles>
oh sorry
07:15
<path[l]>
besides I also want to check values
07:15
<path[l]>
I mean if I want to compare {:a => 1, :b =>2} and say it should be contained in {:a => 1, :b =>2, :c => 3}
07:16
<technicalpickles>
hash.should include(other_hash) maybe
07:17
<technicalpickles>
generally a good place to check for matchers too, btw
08:56
technicalpickles joined
08:56
technicalpickles joined
09:11
<GitHub143>
rspec-mocks: master David Chelimsky * d11b3fd (3 files in 2 dirs): scope module for Ruby 1.9
09:11
<GitHub143>
rspec-mocks: master David Chelimsky * a6a25f4 (11 files in 2 dirs): bangless stub
09:11
<GitHub143>
rspec-mocks: master David Chelimsky * 650cd24 (20 files in 4 dirs): double down
11:48
thebluecasket joined
12:33
<eydaimon>
that was beta.2 btw
12:33
<eydaimon>
trying again
12:33
<eydaimon>
perhaps a spec --version would be useful
12:36
<eydaimon>
ugh, now it's not loading correctly
12:36
<eydaimon>
fixed, and still same problem with pendin
12:39
<technicalpickles>
eydaimon: could you paste to gist.github.com? opendns seems to think pastie is a phishing site
12:41
<eydaimon>
sure thing
12:44
<technicalpickles>
beta you said?
12:44
<eydaimon>
rspec (2.0.0.beta.4)
12:45
<eydaimon>
ruby 1.9.1p378
12:46
<technicalpickles>
I don't see any pending methods, weird
12:46
<technicalpickles>
I think it's a WIP
12:48
<eydaimon>
using cucumber to test rspec?
12:49
<technicalpickles>
crazy, right? :)
12:49
<eydaimon>
anyway, so WIP then? only for 2.0.0 ?
12:50
<eydaimon>
oh, now I see the @wip on the top
12:50
<eydaimon>
I missed that before
12:50
<technicalpickles>
sorry, that's what I meant to highlight :)
12:53
<eydaimon>
yeah, it's highlighted, just was so small at the top :P
12:56
<technicalpickles>
pending is pending. oh the irony!
13:15
<eydaimon>
seems like an odd thing to release a beta for and not include
14:12
bcardarella_ joined
14:37
<SiaCo>
Hi! I'm trying out Rails 3 beta and Rspec-2 beta 4 .. It seems rather slow to me running `rake spec` or `spec spec/models/a_model_spec.rb`. It seems that both commands are slower getting than rspec used with rails 2.3.5. It is getting started which takes time; once the green specs-dots starts popping up the speeds seems okay. Anyone noticed this too?
14:41
<SiaCo>
hm, might be rails 3 is kinda slow booting
14:43
<a2ron>
Can someone please inform me how to set the user agent with rspec. I'm getting the index action. get :index, nil, ??
15:02
thebluecasket joined
15:21
<a2ron>
any help? I've tried get :index, nil, :headers => {'HTTP_USER_AGENT' => 'bblaaaah'} but it doens't seem to work
15:28
<eydaimon>
is there a way to use haml without installing it as a plugin for rails 3?
15:28
<eydaimon>
oh, wrong channel
15:30
<nkabbara>
Hi, I'm trying to test a metal using cucumber, but it seems stubbing isn't extending all the way to the metal code. Any idea why? Thanks.
15:32
<a2ron>
yay, so happy.
19:18
merboutpost_ joined
19:37
technicalpickles joined
19:37
technicalpickles joined
19:44
technicalpickles joined
19:44
technicalpickles joined
19:45
technicalpickles joined
19:45
technicalpickles joined
20:25
technicalpickles joined
20:27
technicalpickles joined
22:40
<GitHub27>
rspec-core: master David Chelimsky * bb574fe (3 files in 3 dirs): remove -O option from generated test command in autotest/rspec2 -
http://bit.ly/9k4j4n