views:

53

answers:

1

So, my app has a javascript alert... how do I, using cucumber and / or capybara, test that the alert hay a particular string?

+3  A: 

Try Cucumber + Webrat + Selenium. You can then write statements like

selenium.is_alert_present.should be_true
selenium.get_alert.should eql("File Deleted")

:-)

Jagira
is there a way to do this with culerity? selenium errors the balls out of itsself on my machine
DerNalia