test/angelo/mustermann_spec.rb in angelo-0.3.3 vs test/angelo/mustermann_spec.rb in angelo-0.4.0
- old
+ new
@@ -1,20 +1,17 @@
if RUBY_VERSION =~ /^2\.(\d)/ and $1.to_i > 0 and RUBY_PLATFORM != 'java'
require_relative '../spec_helper'
- require 'angelo/mustermann'
- require 'angelo/tilt/erb'
- describe Angelo::Mustermann do
+ describe 'mustermann integration' do
describe 'pattern matching' do
pattern = '/:foo/things/:bar'
let(:mm_pattern){ ::Mustermann.new(pattern) }
define_app do
- include Angelo::Mustermann
content_type :json
get pattern do
params
end
@@ -57,12 +54,10 @@
end
describe 'tilt/erb integration' do
define_app do
- include Angelo::Tilt::ERB
- include Angelo::Mustermann
@root = TEST_APP_ROOT
get '/:foo/things/:bar' do
@title = params[:foo]
@@ -97,11 +92,10 @@
describe 'filters' do
describe 'params in route blocks' do
define_app do
- include Angelo::Mustermann
before '/before/:foo' do
@foo = params[:foo]
end
@@ -125,10 +119,9 @@
end
describe 'wildcard' do
define_app do
- include Angelo::Mustermann
before do
@foo = params[:foo]
end