test/test_inheritance.rb in jellyfish-1.0.0 vs test/test_inheritance.rb in jellyfish-1.0.1

- old
+ new

@@ -1,12 +1,12 @@ require 'jellyfish/test' describe 'Inheritance' do - behaves_like :jellyfish + paste :jellyfish - should 'inherit routes' do + would 'inherit routes' do sup = Class.new{ include Jellyfish get('/0'){ 'a' } } app = Class.new(sup){ @@ -25,11 +25,11 @@ sup .routes['get'].size.should.eq 1 app.class.routes['get'].size.should.eq 2 end - should 'inherit handlers' do + would 'inherit handlers' do sup = Class.new{ include Jellyfish handle(TypeError){ 'a' } get('/type') { raise TypeError } get('/argue'){ raise ArgumentError } @@ -45,11 +45,11 @@ sup .handlers.size.should.eq 1 app.class.handlers.size.should.eq 2 end - should 'inherit controller' do + would 'inherit controller' do sup = Class.new{ include Jellyfish controller_include Module.new{ def f; 'a'; end } get('/0'){ f } } @@ -64,10 +64,10 @@ sup .controller_include.size.should.eq 1 app.class.controller_include.size.should.eq 1 end - should 'inherit handle_exceptions' do + would 'inherit handle_exceptions' do sup = Class.new{ include Jellyfish handle_exceptions false } app = Class.new(sup)