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.0.1 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.0 spec/active_record/turntable/rack/query_cache_spec.rb
activerecord-turntable-2.0.0.rc1 spec/active_record/turntable/rack/query_cache_spec.rb