This commit is contained in:
Rico Sta. Cruz 2015-04-20 19:18:58 +08:00
parent c2f59f7c87
commit 9d2e4d419f
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ describe "home page" do
end
post "/login", username: "jdoe", password: "secret"
expect(response.status).to eql 200
# capybara
expect(page).to have_selector(".header .username", :text => "jdoe")
end