Re: [rspec-users] How it would be tested?

2010-07-21 Thread tests learner
le writing a spec. > You may find BDD reading in abundance on the internets. > > To get a more substantial reply, I think you might want to describe what you > want your code to do in plain English, and the community will hopefully help > you to express that in rspec. > > Cheer

[rspec-users] How it would be tested?

2010-07-20 Thread tests learner
Hello all. I'm working with rails and came to a situation that i cannot imagine how to test this. Given i have an index action that retrieves me a collection of objects. But some of them have especific permissions. My index action act like this: - retrieve public objects. - retrieve permission