Skip to content

Commit fba1054

Browse files
committed
chore: fix spelling
1 parent 3cf44f7 commit fba1054

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

lib/active_resource/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module ActiveResource
127127
# requests. These sensitive credentials are sent unencrypted, visible to
128128
# any onlooker, so this scheme should only be used with SSL.
129129
#
130-
# Digest authentication sends a crytographic hash of the username, password,
130+
# Digest authentication sends a cryptographic hash of the username, password,
131131
# HTTP method, URI, and a single-use secret key provided by the server.
132132
# Sensitive credentials aren't visible to onlookers, so digest authentication
133133
# doesn't require SSL. However, this doesn't mean the connection is secure!

lib/active_resource/collection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Collection # :nodoc:
1515
# ActiveResource::Collection is a wrapper to handle parsing index responses that
1616
# do not directly map to Rails conventions.
1717
#
18-
# You can define a custom class that inherets from ActiveResource::Collection
18+
# You can define a custom class that inherits from ActiveResource::Collection
1919
# in order to to set the elements instance.
2020
#
2121
# GET /posts.json delivers following response body:

test/cases/base/load_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def setup
6464
places: [ "Columbia City", "Unknown" ] } } }
6565

6666

67-
# List of books formated as [{timestamp_of_publication => name}, ...]
67+
# List of books formatted as [{timestamp_of_publication => name}, ...]
6868
@books = { books: [
6969
{ 1009839600 => "Ruby in a Nutshell" },
7070
{ 1199142000 => "The Ruby Programming Language" }
@@ -123,7 +123,7 @@ def test_load_simple_hash
123123
assert_equal @matz.stringify_keys, @person.load(@matz).attributes
124124
end
125125

126-
def test_load_object_with_implict_conversion_to_hash
126+
def test_load_object_with_implicit_conversion_to_hash
127127
assert_equal @matz.stringify_keys, @person.load(FakeParameters.new(@matz)).attributes
128128
end
129129

test/cases/collection_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ReduxCollection < ActiveResource::Base
7070
end
7171

7272

73-
class CollectionInheretanceTest < ActiveSupport::TestCase
73+
class CollectionInheritanceTest < ActiveSupport::TestCase
7474
def setup
7575
@post = { id: 1, title: "Awesome" }
7676
@posts_hash = { "results" => [@post], :next_page => "/paginated_posts.json?page=2" }

test/cases/connection_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_proxy_accessor_accepts_uri_or_string_argument
150150
assert_equal proxy, @conn.proxy
151151
end
152152

153-
def test_proxy_accessor_accepts_uri_or_string_argument_with_spectials_characters
153+
def test_proxy_accessor_accepts_uri_or_string_argument_with_special_characters
154154
user = "proxy_;{(,!$%_user"
155155
password = "proxy_;:{(,!$%_password"
156156

test/cases/http_mock_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class HttpMockTest < ActiveSupport::TestCase
142142
assert_equal 2, ActiveResource::HttpMock.responses.length
143143
end
144144

145-
test "allows you to replace the existing reponse with the same request by calling a block" do
145+
test "allows you to replace the existing response with the same request by calling a block" do
146146
ActiveResource::HttpMock.respond_to do |mock|
147147
mock.send(:get, "/people/1", {}, "JSON1")
148148
end
@@ -154,7 +154,7 @@ class HttpMockTest < ActiveSupport::TestCase
154154
assert_equal 1, ActiveResource::HttpMock.responses.length
155155
end
156156

157-
test "allows you to replace the existing reponse with the same request by passing pairs" do
157+
test "allows you to replace the existing response with the same request by passing pairs" do
158158
ActiveResource::HttpMock.respond_to do |mock|
159159
mock.send(:get, "/people/1", {}, "JSON1")
160160
end

0 commit comments

Comments
 (0)