Sha256: 0f6ddf62b58290f17561b985117b0e7ce9e7271573ebac49e08bd2bc641582d7

Contents?: true

Size: 463 Bytes

Versions: 23

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

describe ActiveRecord::Turntable::Rack::QueryCache do
  before(:all) do
    reload_turntable!(File.join(File.dirname(__FILE__), "../../../config/turntable.yml"))
  end

  before do
    establish_connection_to(:test)
    truncate_shard
  end

  let(:mw) { ActiveRecord::Turntable::Rack::QueryCache.new lambda {|env| [200, {}]} }
  subject { mw.call({}) }

  it "should returns 200 response" do
    expect(subject.first).to eq(200)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
activerecord-turntable-2.5.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.4.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.3.3 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.3.2 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.3.1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.3.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.2.2 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.2.1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.2.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.0.rc2 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.0.rc1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.0.beta2 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.1.0.beta1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.6 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.5 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.4 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.3 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.2 spec/active_record/turntable/rack/query_cache_spec.rb