Advertisement
Guest User

Untitled

a guest
Sep 11th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.41 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe "Creating todo lists" do
  4.     it "redirects to the todo list index page on sucess" do
  5.         visit "/todo_lists"
  6.         click_link "New Todo list"
  7.         expect(page).to have_content("New todo list")
  8.  
  9.         fill_in "Title", with: "My todo list"
  10.         fill_in "Description", with: "This is what i'm doing today"
  11.         click_button "Create Todo list"
  12.         expect(page).to have_content("My todo list")
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement