Sha256: 0e439bb5a021a2acba8f756320ecd696ff0144406f8d636a567d1327e04f731e
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
require 'rest-core/test' describe RC::Builder do should 'default app is a kind of RestCore::Dry' do RC::Builder.client.new.app.should.kind_of RC::Engine end should 'switch default_engine to RestCore::Dry' do builder = RC::Builder.dup builder.default_engine = RC::Dry builder.client.new.app.class.should.eq RC::Dry end should 'not have duplicated fields' do middleware = Class.new do def self.members; [:value]; end include RC::Middleware end client = RC::Builder.client(:value){ use middleware }.new client.value = 10 client.value.should.eq 10 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rest-core-3.2.0 | test/test_builder.rb |
rest-core-3.1.1 | test/test_builder.rb |
rest-core-3.1.0 | test/test_builder.rb |
rest-core-3.0.0 | test/test_builder.rb |