Skip to content

Commit

Permalink
prefer be_include over have_key in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
namusyaka committed Sep 15, 2018
1 parent b62c8c5 commit b7c1064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinatra-contrib/spec/cookies_spec.rb
Expand Up @@ -559,7 +559,7 @@ def cookies(*set_cookies)
it 'checks response cookies' do
jar = cookies
jar['foo'] = 'bar'
expect(jar).to have_key(:foo)
expect(jar).to be_include(:foo)
end

it 'does not use deleted cookies' do
Expand Down

0 comments on commit b7c1064

Please sign in to comment.