Commit Graph

30 Commits

Author SHA1 Message Date
stjhimy 907b3de034 Fix rspec old syntax warning 2016-07-20 05:53:24 -03:00
Zachary Scott a039a8c415 Merge pull request #194 from stjhimy/regex_namespace
Add missing specs for filters/helpers when using regex namespace
2016-07-20 14:25:09 +09: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
Zachary Scott b1fd9f1dd3 Use Mustermann from master until a release is made
Since master has a patch which fixes the missing `:+` implementation for
Regular and Sinatra-based patterns.

We can also re-enable the namespace specs for accepting regular expressions for
path concatination.

/cc #200 and #207
2016-07-19 10:46:13 +09:00
Vasiliy Yaklushin 402dd7cef2 Fix namespace extension to support latest sinatra version 2016-07-15 15:14:11 +02:00
Zachary Scott eedc923fd8 Skip failing Namespace related specs /cc #200 2016-07-15 13:30:20 +09:00
Zachary Scott d1ae596c2a Try concatenation, fall back to regexp interpolation for building path 2016-06-30 12:45:04 +09:00
Zachary Scott f8b2484d0f Prefixing Strings are different than Regexps because of reasons 2016-06-28 19:41:34 +09:00
Zachary Scott 18d19dfb2a ✂️ 👾 2016-06-27 08:50:01 +09:00
Zachary Scott d6e1745ee7 Use Mustermann internally for building `prefixed_path` as `RegexpBased` pattern
Removed `regexpify` from internal API.
2016-06-26 13:42:15 +09:00
stjhimy 8003802307 Migrate to rspec 3.4 2016-06-21 15:12:09 -03:00
stjhimy 94371022f1 Add missing specs for filters/helpers when using regex namespace 2016-04-15 22:20:12 -03:00
stjhimy 36c20fae65 Add reredict_to method allowing redirects within a namespace 2016-04-12 07:12:08 -03:00
Anton Davydov d0ded4bb59 Fix typo in test description [skip ci] 2015-06-22 01:01:52 +03:00
Lars Vonk 1d0ef03b7c Fix for Issue 119
Make sure error blocks with custom Exceptions
are handled when namespace is declared as '/foo/:id'.
2015-05-27 20:10:52 +02:00
Zachary Scott a040c48d07 Merge branch 'issue_28' of https://github.com/lest/sinatra-contrib into lest-issue_28 2015-05-22 16:10:15 -07:00
Zachary Scott 908a140a77 Merge pull request #128 from vipulnsward/fix-namespace-warnings
Fix namespace warnings
2015-05-22 14:31:23 -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
Sergey Nartimov 40dbfc94c9 allow checking setting existance with respond_to?
closes #28
2014-11-25 12:31:33 +03:00
Zachary Scott 618151598f specs for sinatra/sinatra-contrib#28 2014-06-09 22:28:03 -07:00
Bo Jeanes 5e01e0db22 Limit backports usage in specs 2014-05-12 19:59:19 -07:00
Vipul A M 50fbf74117 use rspec equality method `eq` instead of `==` to avoid warnings about using `==` in void context. 2014-04-06 18:43:58 +05:30
Katrina Owen fd529d7fd7 Rework namespace specs for clarity
I renamed most of the specs, with the goal of having a more readable
`--format=documentation` output.

I also added a couple of extra contexts and reordered to help group tests
more logically.
2012-12-10 20:34:02 +01:00
Katrina Owen 85ab6efc0f Tweak typos/grammer in spec names 2012-12-04 16:33:16 +01:00
Trevor Bramble 2895b2f36c Merge branch 'namespace-error-fix' of github.com:unakatsuo/sinatra-contrib into 1.3.x 2012-12-03 17:59:42 +01:00
Konstantin Haase 825c7e2412 add template support to namespaces 2011-03-29 10:08:05 +02:00
Konstantin Haase 676d217a3b add test for raising and error when trying to change app global settings from a namespace 2011-03-26 00:40:58 +01:00
Konstantin Haase fb488b9867 trigger route_added hooks for namespace-only extensions 2011-03-26 00:39:16 +01:00
Konstantin Haase 99029a0b41 implement namespace local error handling 2011-03-24 08:57:36 +01:00
Konstantin Haase aee11b812f start reimplementation of sinatra-namespace 2011-03-24 08:47:56 +01:00