Sha256: 7714193c74fd098606adcf8f02c6a2258af077e2fa1d91b240b00d7b7f2417ce
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' require_relative 'support/middleware' describe Plaza::Configuration do let(:config){Plaza::Configuration.new} describe '#use' do expected_stack= [ Example::HelloMiddleware, Example::GoodbyeMiddleware, Plaza::Middleware::Exceptions, Plaza::Middleware::UserId ] it 'should add middleware to the faraday stack' do config.use Example::HelloMiddleware config.use Example::GoodbyeMiddleware config.middleware.should == expected_stack end it 'should add middleware if added as a list' do config.use Example::HelloMiddleware, Example::GoodbyeMiddleware config.middleware.should == expected_stack end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plaza-0.1.1 | spec/plaza/configuration_spec.rb |
plaza-0.1.0 | spec/plaza/configuration_spec.rb |