Skip to content

Commit

Permalink
fix typo "unkown" to "unknown" in files
Browse files Browse the repository at this point in the history
  • Loading branch information
stensonb committed Mar 6, 2014
1 parent 2d73c91 commit 1c67910
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/github_api/arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def parse(*args, &block)
self
end

# Remove unkown keys from parameters hash.
# Remove unknown keys from parameters hash.
#
# = Parameters
# :recursive - boolean that toggles whether nested filtering should be applied
Expand Down
2 changes: 1 addition & 1 deletion lib/github_api/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def delete_request(path, params = ParamsHash.empty)
#
def request(method, path, params) # :nodoc:
unless METHODS.include?(method)
raise ArgumentError, "unkown http method: #{method}"
raise ArgumentError, "unknown http method: #{method}"
end

puts "EXECUTED: #{method} - #{path} with PARAMS: #{params}" if ENV['DEBUG']
Expand Down
4 changes: 2 additions & 2 deletions spec/github/activity/notifications/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

it { should respond_to :all }

it 'filters unkown parameters' do
subject.list :unkown => true
it 'filters unknown parameters' do
subject.list :unknown => true
a_get(request_path).with(:query => {:access_token => OAUTH_TOKEN}).
should have_been_made
end
Expand Down
2 changes: 1 addition & 1 deletion spec/github/repos/contributors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
expect { subject.contributors user }.to raise_error(ArgumentError)
end

it 'filters out unkown parameters' do
it 'filters out unknown parameters' do
subject.contributors user, repo, :unknown => true
a_get(request_path).with({}).should have_been_made
end
Expand Down
2 changes: 1 addition & 1 deletion spec/github/repos/list_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

it "should filter the parameters" do
subject.list 'user' => user, :unkown => true
subject.list 'user' => user, :unknown => true
a_get(request_path).with({}).should have_been_made
end

Expand Down
2 changes: 1 addition & 1 deletion spec/github/validations/format_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
}

it 'fails to accept unkown value for a given parameter key' do
it 'fails to accept unknown value for a given parameter key' do
actual = { 'param_a' => 'x' }
expect {
validator.assert_valid_values(permitted, actual)
Expand Down

0 comments on commit 1c67910

Please sign in to comment.