Sha256: 9066d94ee720b40d6cd8968357b1f54813de006b5cdbb1428be7749f04e77316

Contents?: true

Size: 513 Bytes

Versions: 9

Compression:

Stored size: 513 Bytes

Contents

require 'spec_helper'

describe VersionCake::ResponseStrategy::Base do
  describe '.lookup' do
    let(:strategy) { :http_content_type }
    subject(:found_strategy) { VersionCake::ResponseStrategy::Base.lookup(strategy) }

    it { expect(found_strategy.class).to eq VersionCake::ResponseStrategy::HttpContentTypeStrategy }
  end

  describe '#execute' do
    subject(:execute) { VersionCake::ResponseStrategy::Base.new.execute(nil,nil,nil,nil) }

    it { expect { execute }.to raise_error Exception }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
versioncake-4.1.1 spec/unit/response_strategy/base_spec.rb
versioncake-4.1.0 spec/unit/response_strategy/base_spec.rb
versioncake-4.0.2 spec/unit/response_strategy/base_spec.rb
versioncake-4.0.1 spec/unit/response_strategy/base_spec.rb
versioncake-4.0.0 spec/unit/response_strategy/base_spec.rb
versioncake-3.4.0 spec/unit/response_strategy/base_spec.rb
versioncake-3.3.0 spec/unit/response_strategy/base_spec.rb
versioncake-3.2.0 spec/unit/response_strategy/base_spec.rb
versioncake-3.1.0 spec/unit/response_strategy/base_spec.rb