Sha256: ead8656555e9ebb6b8ef03335dffec11a807cb5a7fe85837d71039cb9c6020fd

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

describe Animoto::HTTPEngines::Base do
  
  describe "autoloading subclasses" do
    before do
      Animoto::HTTPEngines::Base.const_defined?(:BeefHearts).should be_false
    end
    
    
    
    after do
      Animoto::HTTPEngines::Base.remove_const(:BeefHearts)
    end
  end
  
  describe "making a request" do
    before do
      @engine = Animoto::HTTPEngines::Base.new
    end
    
    it "should raise an implementation error" do
      lambda { @engine.request(:get, "http://www.example.com/thing") }.should raise_error(NotImplementedError)
    end
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
animoto-0.1.1.beta1 ./spec/animoto/http_engines/base_spec.rb
animoto-0.1.0.beta1 ./spec/animoto/http_engines/base_spec.rb
animoto-0.1.0.beta0 ./spec/animoto/http_engines/base_spec.rb