Sha256: 8e0d98d01b75cc5832518c3e065fda8746512b370d461be23d548d580299bce4
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
require "spec_helper" describe Rack::API, "delegators" do subject { Rack::API } specify "sanity check for delegate methods" do Rack::API::Runner::DELEGATE_METHODS.size.should == 15 end it { should respond_to(:version) } it { should respond_to(:use) } it { should respond_to(:prefix) } it { should respond_to(:basic_auth) } it { should respond_to(:helper) } it { should respond_to(:default_url_options) } it { should respond_to(:rescue_from) } it { should respond_to(:get) } it { should respond_to(:post) } it { should respond_to(:put) } it { should respond_to(:delete) } it { should respond_to(:head) } it { should respond_to(:patch) } it { should respond_to(:options) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-api-1.1.0 | spec/rack-api/method_delegation_spec.rb |