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

Version Path
auser-butterfly-0.0.3 test/test_adapter_base.rb
auser-butterfly-0.0.4 test/test_adapter_base.rb
auser-butterfly-0.0.5 test/test_adapter_base.rb
auser-poolparty-1.1.1 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.1.3 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.1.4 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.1.5 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.1.7 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.2.0 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.2.1 vendor/gems/butterfly/test/test_adapter_base.rb
auser-poolparty-1.2.2 vendor/gems/butterfly/test/test_adapter_base.rb
fairchild-poolparty-1.1.3 vendor/gems/butterfly/test/test_adapter_base.rb
fairchild-poolparty-1.1.4 vendor/gems/butterfly/test/test_adapter_base.rb
poolparty-1.2.2 vendor/gems/butterfly/test/test_adapter_base.rb