Your SlideShare is downloading. ×
0
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Behavior Driven Infrastructure 2011-01
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Behavior Driven Infrastructure 2011-01

893

Published on

My presentation to Ruby Users of Minnesota in January of 2011. This is an early version of this talk.

My presentation to Ruby Users of Minnesota in January of 2011. This is an early version of this talk.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
893
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. Behavior Driven Infrastructure Jeffrey Hulten Automated Labs, LLC
    • 2. Hearing it here, first!
    • 3. Who Am I?
    • 4. Behavior Driven?
    • 5. BDD
    • 6. Cucumber & rSpec
    • 7. Infrastructure as Code
    • 8. Where are the tests?
    • 9. Behavior Driven Infrastructure
    • 10. What do we need?cucumber => "~> 0.9.2"net-ssh => "~> 2.0.23"webrat => "~> 0.7.1"rspec => "~> 2.0.0"cucumber-nagios => "~> 0.7.6"
    • 11. Learn Gherkin! GIVEN WHEN THEN
    • 12. Given...PrerequisitesNot required in a scenario“Given the user ‘tom’ exists”
    • 13. When...Action to take“When I look at the directory ‘/home/tom’”
    • 14. Then...Results to expect“Then it should be owned by ‘tom’”
    • 15. And...Just like the one above“Then it should be owned by ‘tom’”“And it should be mode 0755”
    • 16. ScenarioGiven the user ‘tom’ existsWhen I look at the directory ‘/home/tom’Then it should be owned by ‘tom’And it should be mode 0755
    • 17. That’s not Ruby!Scenarios are in EnglishStep Definitions are in Ruby
    • 18. Step DefinitionsWhen /^I look at the directory ([^]*)$/ do |arg1| @filename = arg1endThen /^it should be owned by "([^"]*)"$/ do |arg1| ...end
    • 19. Demo
    • 20. Thanks! Jeffrey Hulten jeffh@automatedlabs.com http://automatedlabs.comFeedback @ http://spkr8.com/t/5475

    ×