diff --git a/11_dictionary/dictionary_spec.rb b/11_dictionary/dictionary_spec.rb index 85f147ccf..b0148726f 100644 --- a/11_dictionary/dictionary_spec.rb +++ b/11_dictionary/dictionary_spec.rb @@ -30,19 +30,19 @@ end it 'can check whether a given keyword exists' do - @d.include?('fish').should be_false + @d.include?('fish').should be_falsey end it "doesn't cheat when checking whether a given keyword exists" do - @d.include?('fish').should be_false # if the method is empty, this test passes with nil returned + @d.include?('fish').should be_falsey # if the method is empty, this test passes with nil returned @d.add('fish') - @d.include?('fish').should be_true # confirms that it actually checks - @d.include?('bird').should be_false # confirms not always returning true after add + @d.include?('fish').should be_truthy # confirms that it actually checks + @d.include?('bird').should be_falsey # confirms not always returning true after add end it "doesn't include a prefix that wasn't added as a word in and of itself" do @d.add('fish') - @d.include?('fi').should be_false + @d.include?('fi').should be_falsey end it "doesn't find a word in empty dictionary" do