Sha256: d31056bff290e17202e75ee2da262f881897f30a8b8b531b9ef5820516b5ff31
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
require 'spec_helper' describe Traxis::Response do subject { described_class } context "when response_definition is inherited" do let(:test_subject) { ::Praxis::ApiDefinition } let(:fake_response_klass) do fake = Class.new(::Traxis::Response) fake.stub(:response_name) { :my_fake_response_klass } fake.stub(:status) { 200 } end it "registers the response definition" do Traxis.should_receive(:register_response) fake_response_klass end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
traxis-0.0.2 | spec/traxis/response_definition_spec.rb |
traxis-0.0.1 | spec/traxis/response_definition_spec.rb |