Sha256: adb99f10778ec6bc3a9e30c058ef3fc3afd6afa403023ddc5b7a352c2eff59ba
Contents?: true
Size: 809 Bytes
Versions: 14
Compression:
Stored size: 809 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class TestAdapterBase < Test::Unit::TestCase context "adaptor_base" do before do @ab = Butterfly::AdaptorBase.new @env = {"REQUEST_URL" => "/"} @response = Object.new end it "should raise an exception if there is no get defined" do assert_raise Exception do; @ab.get(@env, @response) end end it "should raise an exception if there is no post defined" do assert_raise Exception do; @ab.post(@env, @response) end end it "should raise an exception if there is no delete defined" do assert_raise Exception do; @ab.delete(@env, @response) end end it "should raise an exception if there is no put defined" do assert_raise Exception do; @ab.put(@env, @response) end end end end
Version data entries
14 entries across 14 versions & 4 rubygems