Sha256: 863ac35908e4b1eadb78721c34ce55929767ec37c2f12599b7fb609a036c7895

Contents?: true

Size: 595 Bytes

Versions: 6

Compression:

Stored size: 595 Bytes

Contents

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

describe Animoto::HTTPEngine do
  
  describe "autoloading subclasses" do
    before do
      Animoto::HTTPEngine.const_defined?(:BeefHearts).should be_false
    end
    
    
    
    after do
      Animoto::HTTPEngine.remove_const(:BeefHearts)
    end
  end
  
  describe "making a request" do
    before do
      @engine = Animoto::HTTPEngine.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

6 entries across 6 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha9 ./spec/animoto/http_engine_spec.rb
animoto-0.0.0.alpha8 ./spec/animoto/http_engine_spec.rb
animoto-0.0.0.alpha7 ./spec/animoto/http_engine_spec.rb
animoto-0.0.0.alpha6 ./spec/animoto/http_engine_spec.rb
animoto-0.0.0.alpha5 ./spec/animoto/http_engine_spec.rb
animoto-0.0.0.alpha4 ./spec/animoto/http_engine_spec.rb