Support validation

supporting-an-initiative-test works but making-a-suggestion-test breaks
thanks for the hint, haha, now more clear, seems before i think to complex


On Wed, Aug 20, 2014 at 2:29 PM, Oliver Azevedo Barnes <
notifications@github.com> wrote:

> In tests/acceptance/making-a-suggestion-to-initiative-test.js:
>
> > @@ -16,13 +16,16 @@ suite('Making a suggestion to an initiative', {
> >
> >  test('Successfully', function(){
> >    visit('/initiatives/1').then(function() {
> > -    click( $("a:contains('Make a suggestion')") ).then(function() {
> > -      expect(currentURL()).to.equal('/initiatives/1/suggestions/new');
> > -      fillIn('div.details textarea', "Make sure there's a doctor available for house calls");
> > -      click('form input[type=submit]').then(function() {
> > -        expect(currentURL()).to.equal('/initiatives/1/suggestions');
> > -        expect(find('.suggestion').first().text()).to.equal("Make sure there's a doctor available for house calls");
> > +    click( $("a:contains('Support this initiative')") ).then(function() {
>
> You know how you're finding the 'Make suggestion' link so it can be
> clicked? You can expect that to return an empty set:
>
> expect( $("a:contains('Make a suggestion')") ).to.equal([])
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/oliverbarnes/participate-frontend/pull/37/files#r16470294>
> .
>