On Tue, Nov 17, 2009 at 3:48 PM, shenry <
stuar...@gmail.com> wrote:
>
> I think I answered my own question, I ended up doing
>
> it 'works' do
> post '/add', :add => default_params
> result = last_response.body.match(/<p id=['"]result['"]>([0-9.,]*)
> g<\/p>/)[1]
> assert result == "1,000"
> end
>
> where the regex looks for the contents of the <p> tag in each view
> that contains the result.
>
> Is there a better way?