Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling mistakes #56

Open
wants to merge 1 commit into
base: main
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/16a_caesar_breaker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
# ASSIGNMENT #2
# Write the following 3 tests:

xit 'sends message to check the existance of the 16_cipher directory' do
xit 'sends message to check the existence of the 16_cipher directory' do
end

xit 'sends message to create a directory' do
Expand All @@ -97,7 +97,7 @@
before do
end

xit 'sends message to check the existance of the 16_cipher directory' do
xit 'sends message to check the existence of the 16_cipher directory' do
end

xit 'does not send message to create a directory' do
Expand All @@ -124,7 +124,7 @@
end
end

# Let's simulate an error occuring during #save_decrypted_messages by
# Let's simulate an error occurring during #save_decrypted_messages by
# allowing File.open to raise the error 'Errno::ENOENT'. This error means
# that no such file or directory could be found. In addition, when an error
# is rescued there are two puts to stub to clean up the test output.
Expand Down
6 changes: 3 additions & 3 deletions spec_answers/16a_caesar_answer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
# ASSIGNMENT #2
# Write the following 3 tests:

it 'sends message to check the existance of the 16_cipher directory' do
it 'sends message to check the existence of the 16_cipher directory' do
expect(Dir).to receive(:exist?).with('16_cipher').exactly(1).time
phrase.save_decrypted_messages
end
Expand All @@ -107,7 +107,7 @@
allow(phrase).to receive(:display_file_location)
end

it 'sends message to check the existance of the 16_cipher directory' do
it 'sends message to check the existence of the 16_cipher directory' do
expect(Dir).to receive(:exist?).with('16_cipher').exactly(1).time
phrase.save_decrypted_messages
end
Expand Down Expand Up @@ -140,7 +140,7 @@
end
end

# Let's simulate an error occuring during #save_decrypted_messages by
# Let's simulate an error occurring during #save_decrypted_messages by
# allowing File.open to raise the error 'Errno::ENOENT'. This error means
# that no such file or directory could be found. In addition, when an error
# is rescued there are two puts to stub to clean up the test output.
Expand Down