On Feb 8, 2011, at 4:14 AM, Matt Wynne wrote:
>
> On 4 Feb 2011, at 09:30, Alan B wrote:
>
>> Hi all, I'm trying to create a custom matcher that will visit a given
>> path and check it's authenticated.
>> Here's what I have so far (using rspec-rails and capybara):
>>
>> matcher :require_authen
On 4 Feb 2011, at 09:30, Alan B wrote:
> Hi all, I'm trying to create a custom matcher that will visit a given
> path and check it's authenticated.
> Here's what I have so far (using rspec-rails and capybara):
>
> matcher :require_authentication do
> match do |path|
>visit path
>#page.c