Sha256: 87c7bd0ae98d99ecdaa43e9a88d40992fe7e5c629e36480fdc5fa7615a713a6a

Contents?: true

Size: 683 Bytes

Versions: 5

Compression:

Stored size: 683 Bytes

Contents

require 'spec_helper'

describe Restfulie do

  context "when building restfulie" do
  
    it "should create a restfulie with an at method" do
      Restfulie.respond_to?(:at).should be_true
    end
    
    module Restfulie::Client::Feature::Custom
      def custom_history
      end
    end
    class Restfulie::Client::Feature::CustomRequest
      def custom_history
      end
    end
    
    it "should allow adding extra methods by usage" do
      Restfulie.use{custom}.respond_to?(:custom_history).should be_true
    end
    
    it "should accepts the old methods after adding new ones" do
      Restfulie.use{custom}.respond_to?(:at).should be_true
    end
    
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 spec/unit/restfulie_spec.rb
restfulie-1.1.1 spec/unit/restfulie_spec.rb
restfulie-1.1.0 spec/unit/restfulie_spec.rb
restfulie-nosqlite-1.0.3 spec/unit/restfulie_spec.rb
restfulie-1.0.3 spec/unit/restfulie_spec.rb