Jordan Owens
e3d96ee91f
Revert back to using include matcher
...
A regression was fixed in Rspec so the include matcher once again
works as expected.
2018-10-10 12:43:43 -04:00
Kunpei Sakai
b7c10649ca
prefer be_include over have_key in this case
2018-09-15 23:13:08 +09:00
Kunpei Sakai
1d4b458f6f
use have_key instead of include to avoid failing spec
...
In rspec-3.8.0, the `include` matcher with hash like object doesn't work
correctly.
See: https://github.com/rspec/rspec-expectations/issues/1068
2018-09-15 17:55:05 +09:00
Olle Jonsson
698824c09f
Spec: Remove unused local 'seen'
2017-08-27 11:42:34 +02:00
Andrew Allen
7c71684610
adds explicit set method to contrib/cookies
2017-01-24 13:40:53 -08:00
Zachary Scott
c4c08c23d7
Merge branch 'rspec' of https://github.com/stjhimy/sinatra-contrib into stjhimy-rspec
2016-07-20 14:19:41 +09:00
stjhimy
8003802307
Migrate to rspec 3.4
2016-06-21 15:12:09 -03:00
stjhimy
c0142101c8
Remove ruby 1.8/1.9 version check
2016-05-09 11:49:42 -03:00
Zachary Scott
b79197443f
Don't set cookie domain on localhost from #118
...
Closes #113
Closes #115
2015-05-22 15:40:08 -07:00
Ashley Williams
60dd845326
fix specs to account for deprecation notices
...
- use `be true` instead of `be_true`
- use `be false` instead of `be_false`
2015-05-15 14:59:42 -04:00
Bo Jeanes
5e01e0db22
Limit backports usage in specs
2014-05-12 19:59:19 -07:00
Konstantin Haase
7afb500422
fix cookie extension for Rack 1.5
2013-03-16 15:18:55 +01:00
Trevor Bramble
a03684c4ef
Reverting due to Ruby 1.8.7 incompatibility
...
Revert "Merge pull request #66 from kylewlacy/master"
This reverts commit 1ad87b6730064300234c6796f214c9eb8c895efa, reversing
changes made to 21415118af38224ca34948ef0b621b57c1201820.
2013-02-20 02:01:16 -08:00
Trevor Bramble
b5293a7a6f
Merge pull request #66 from kylewlacy/master
...
Modify cookie[]= method to support additional options
2013-02-20 01:35:47 -08:00
Thibaut Sacreste
d83b594a3c
cookies.delete honours the app cookie options
2012-11-09 14:07:40 +00:00
Kyle Lacy
f69d7fad03
modify cookie[]= to support extra cookie options
...
Using the syntax `cookie[:key, :options => 'hash']='value'`` will now
merge the provided hash with the existing @options hash (which allows
for changing cookie options on a per-cookie basis).
2012-09-22 21:05:42 -07:00
Rafael Magana
8cdb462af8
fix spec: Sinatra::Cookies fetch raises an exception if key does not exist in JRuby, IndexError was expected instead of KeyError
2012-06-11 17:27:40 -05:00
Konstantin Haase
ac40d671b8
remove hash spec, this is way too inconsisten between rubies
2011-09-05 00:41:36 -07:00
Konstantin Haase
57430546e2
add cookies extension
2011-09-04 18:13:40 -07:00