02:11
<greap>
is there a should evaluate as true method? (not nil and not false)
02:11
<greap>
Pretty much looking for an assert equivilent
02:13
<greap>
I've got "last_response.should ok?" at the moment but it doesn't read very cleanly
02:27
<greap>
Ok, figured that out
04:05
jschoolcraft joined
04:23
charlenopires joined
07:37
<hooligan495>
anybody running autospec w/ jruby?
08:13
fakingfantastic joined
08:17
<PointMan>
Can anyone point me to a reference to testing named_scopes? I cant find in the rspec book nor a simple google search
08:22
ashley_moran joined
08:25
<fakingfantastic>
PointMan:
08:25
<fakingfantastic>
there was a mailing list topic about it
08:25
<PointMan>
yeah I read it but either I was too quick at skimming the thread or it didnt provide any examples
08:25
<fakingfantastic>
the idea is that you shouldn't be concerning yourself with it
08:26
<fakingfantastic>
just concern with it's behavior
08:27
<PointMan>
and what do you mean by that? I have some complex named_scopes..
08:28
<fakingfantastic>
exaaactly
08:28
<PointMan>
ok thanks
08:28
<fakingfantastic>
just like you aren't concering yourself with how .create! works
08:28
<fakingfantastic>
it's how it "behaves"
08:28
<fakingfantastic>
think about writing a rspec for calling twitter
08:29
<fakingfantastic>
you have no idea how their API works
08:29
<fakingfantastic>
and nor can you find out
08:29
<fakingfantastic>
but you don't care, you just wanna make sure that when you ask for your tweets, you get em
08:29
<fakingfantastic>
think of the rails API the same way
08:29
<fakingfantastic>
and your API, for that matter
09:03
<PointMan>
gotcha thanks
09:24
technicalpickles joined
09:24
technicalpickles joined
10:26
charlenopires joined
10:56
<path[l]>
hi, does anyone have any good examples of view specs
10:58
<fakingfantastic>
path[l]: you should check out cucumber
11:00
<path[l]>
yeah but thats for integration tests
11:04
<path[l]>
I wanted just quick unit tests for the view
11:24
<andrun>
Does rspec work with rails 3?
12:25
RobotDeathSquad joined
14:34
digitalhobbit joined
15:50
technicalpickles joined
15:50
technicalpickles joined
21:25
<path[l]>
hi does anyone here have some good examples of writing view tests (not complete integration ones)
22:30
anathematic_ joined