Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe "Creating todo lists" do
- it "redirects to the todo list index page on sucess" do
- visit "/todo_lists"
- click_link "New Todo list"
- expect(page).to have_content("New todo list")
- fill_in "Title", with: "My todo list"
- fill_in "Description", with: "This is what i'm doing today"
- click_button "Create Todo list"
- expect(page).to have_content("My todo list")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement