On Wed, Mar 23, 2011 at 10:16 AM, Radhesh Kamath wrote:
> Justin Ko wrote in post #988825:
> > On Tue, Mar 22, 2011 at 6:50 PM, Radhesh Kamath
> > wrote:
> >
> >> end
> >>
> >> rspec-users@rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/rspec-users
> >>
> >
> >
> > You're mapping absolut
On Wed, Mar 23, 2011 at 12:16 PM, Radhesh Kamath wrote:
> Justin Ko wrote in post #988825:
>> On Tue, Mar 22, 2011 at 6:50 PM, Radhesh Kamath
>> wrote:
>>
>>> end
>>>
>>> rspec-users@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/rspec-users
>>>
>>
>> You're mapping absolute strings (URL
Justin Ko wrote in post #988825:
> On Tue, Mar 22, 2011 at 6:50 PM, Radhesh Kamath
> wrote:
>
>> end
>>
>> rspec-users@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>
>
> You're mapping absolute strings (URL's) to your routes. Any string
> manipulation would dilute the spec
On Mar 22, 2011, at 6:50 PM, Radhesh Kamath wrote:
> Hi experts,
>
> I am trying to test routing in my application, where all routes are
> enclosed in a namespace like so:
>
> scope 'v1' do
> resource :blah end
>collection do
> something
>end
> end
> end
>
> Is there a clean way
On Tue, Mar 22, 2011 at 6:50 PM, Radhesh Kamath wrote:
> Hi experts,
>
> I am trying to test routing in my application, where all routes are
> enclosed in a namespace like so:
>
> scope 'v1' do
> resource :blah end
>collection do
> something
>end
> end
> end
>
> Is there a clean way
Hi Maurício,
Thanks for your help. It now works.
Olivier
On Thu, Jun 19, 2008 at 3:06 PM, Maurício Linhares <
[EMAIL PROTECTED]> wrote:
> Try this:
>
> it "should render properly when getting /books/:id/prices" do
> get "prices", :id => '0'
> response.should be_success
> end
>
> Or even be
Try this:
it "should render properly when getting /books/:id/prices" do
get "prices", :id => '0'
response.should be_success
end
Or even better (or what i think you wanted to do):
map.resources :books, :collection => { :prices => :get }
And your spec won't be changed.
On Thu, Jun 19, 2008 a