migrating from webrat to capybara

21
Capybara

Upload: resultadosdigitaisdev

Post on 14-Jun-2015

168 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Migrating from webrat to Capybara

Capybara

Page 2: Migrating from webrat to Capybara

WEBRAT

Page 3: Migrating from webrat to Capybara

WEBRAT•PRs older than 3 years

Page 4: Migrating from webrat to Capybara

WEBRAT•PRs older than 3 years•selectors are kinda funky

Page 5: Migrating from webrat to Capybara

WEBRAT•PRs older than 3 years•selectors are kinda funky

IT DOES NOT RUN JAVASCRIPT

Page 6: Migrating from webrat to Capybara
Page 7: Migrating from webrat to Capybara
Page 8: Migrating from webrat to Capybara
Page 9: Migrating from webrat to Capybara

Request specs

rack-test webrat matchers

Page 10: Migrating from webrat to Capybara

josevalim dchelimsky alindeman

Page 11: Migrating from webrat to Capybara

Feature specs

Page 12: Migrating from webrat to Capybara
Page 13: Migrating from webrat to Capybara
Page 14: Migrating from webrat to Capybara

Recap

Page 15: Migrating from webrat to Capybara

Recap

•Request specs:

Page 16: Migrating from webrat to Capybara

Recap

•Request specs:•inner working of your application

Page 17: Migrating from webrat to Capybara

Recap

•Request specs:•inner working of your application•Is it returning the proper http headers?

Page 18: Migrating from webrat to Capybara

Recap

•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?

Page 19: Migrating from webrat to Capybara

Recap

•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?

•Feature specs:

Page 20: Migrating from webrat to Capybara

Recap

•Request specs:•inner working of your application•Is it returning the proper http headers?•Is this route streaming the correct JSON response?

•Feature specs:•user/browser perspective

Page 21: Migrating from webrat to Capybara

Thanks!