Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Correct spelling #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/lonely_coder/mailbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def initialize(browser)
@browser = browser
end

def useage
def usage
html = @browser.get('/messages')
current, max = html.search('p.fullness').text.match(/([\d]+) of ([\d]+)/).captures

Expand Down
2 changes: 1 addition & 1 deletion lib/lonely_coder/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def search(options={})
Search.new(options, @browser)
end

# The OKCupid search object. Stores filters and query options and a results set. Correct useage is to obtain
# The OKCupid search object. Stores filters and query options and a results set. Correct usage is to obtain
# and instance of this class by using OKCupid#search(options).
# @see OKCupid#search
class Search
Expand Down
2 changes: 1 addition & 1 deletion spec/mailbox_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
VCR.use_cassette('loading_mailbox', :erb => {username: ENV['OKC_USERNAME'], password: ENV['OKC_PASSWORD']}) do
okc = OKCupid.new(ENV['OKC_USERNAME'], ENV['OKC_PASSWORD'])
@mailbox = okc.mailbox
@mailbox.useage.should == {
@mailbox.usage.should == {
current: 233,
max: 300
}
Expand Down