Skip to content

Commit

Permalink
rename save_screenshot to take_screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Apr 25, 2012
1 parent 3663d69 commit 11389b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -47,11 +47,11 @@ and capy with '-w' option

### Take Screenshot

save_screenshot
take_screenshot

or

save_screenshot 'foo.png'
take_screenshot 'foo.png'

### JavaScript Mode

Expand Down
2 changes: 1 addition & 1 deletion lib/capy.rb
Expand Up @@ -150,7 +150,7 @@ def capybara(script)
instance_eval script
end

def save_screenshot(png_path = nil)
def take_screenshot(png_path = nil)
png_path = gen_uniq_file_name('Screen Shot', 'png') unless png_path
case Capybara.current_driver
when :webkit
Expand Down

0 comments on commit 11389b2

Please sign in to comment.