Skip to content

Commit

Permalink
Correct test method names
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenge authored Jan 20, 2023
1 parent 0020590 commit b2546e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions enumerables/exercises_1/spec/reject_pattern_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
skip
words = ["pill", "bad", "finger", "cat", "blue", "dog", "table", "red"]
# Your code goes here
expected(selected).to eq(["bad", "cat", "dog", "red"])
expect(selected).to eq(["bad", "cat", "dog", "red"])
end

xit 'removes words ending in e' do
words = ["are", "you", "strike", "thinking", "belt", "piece", "warble", "sing", "pipe"]
# Your code goes here
expected(selected).to eq(["you", "thinking", "belt", "sing"])
expect(selected).to eq(["you", "thinking", "belt", "sing"])
end

xit 'removes words ending in ing' do
Expand All @@ -59,7 +59,7 @@
xit 'removes numbers' do
elements = ["cat", "dog", 23, 81.1, 56, "aimless", 43]
# Your code goes here
expected(not_numbers).to eq(["cat", "dog", "aimless"])
expect(not_numbers).to eq(["cat", "dog", "aimless"])
end

xit 'removes floats' do
Expand All @@ -83,7 +83,7 @@
xit 'removes arrays' do
elements = ["CAT", ["dog"], 23, [56, 3, 8], "AIMLESS", 43, "butter"]
# Your code goes here
expected(remaining).to eq(["CAT", 23, "AIMLESS", 43, "butter"])
expect(remaining).to eq(["CAT", 23, "AIMLESS", 43, "butter"])
end

xit 'removes hashes' do
Expand Down

0 comments on commit b2546e5

Please sign in to comment.