Skip to content


Fix typo in readme: 'click_buton' to 'click_button' #490

merged 1 commit into from

2 participants


I was following the readme for implementing request specs and when trying to use the 'click_buton' method I received a Method Not Found error. Turns out there's a typo in the readme, the methos is 'click_button' (two t's). Thought I'd update the document so that other didn't encounter any confusion.

@dchelimsky dchelimsky merged commit 89d6ef1 into rspec:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 21, 2012
  1. @reidreid46
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -134,7 +134,7 @@ describe "home page" do
visit "/login"
fill_in "Username", :with => "jdoe"
fill_in "Password", :with => "secret"
- click_buton "Log in"
+ click_button "Log in"
page.should have_selector(".header .username", :text => "jdoe")
Something went wrong with that request. Please try again.