Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Behavior Driven Development, an introduction

Behavior Driven Development, an introduction

Introduction to BDD Lightning talk for RailsGirls Groningen event 9th of november 2013

Peter Berkenbosch

November 09, 2013
Tweet

More Decks by Peter Berkenbosch

Other Decks in Programming

Transcript

  1. Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl require "test_helper" ! feature

    "Show info static page" do scenario “renders pages#info” do visit "/pages/info" page.must_have_content "Info static page" end end test/features/show_info_static_page_test.rb
  2. Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl Railsgirls::Application.routes.draw do root :to

    => redirect('/ideas') resources :ideas ! get "pages/info" end config/routes.rb
  3. Peter Berkenbosch * @pberkenbosch * www.peterberkenbosch.nl <h1>Info static page</h1> <p>

    Hello wonderful Rails world!</p> app/views/pages/info.html.erb