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
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