Sha256: 44102d43b88ed78e042cadf45a66bc7dcc1ede15817e1281da11bcf538b902d6

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require 'spec_helper'

describe "Rabl Cache", type: :request, caching: true do
  before do
    allow(Refinery::Api).to receive(:requires_authentication).and_return(false)

    create(:page)
    expect(Refinery::Page.count).to eq(1)
  end

  it "doesn't create a cache key collision for models with different rabl templates" do
    get "/api/v1/pages"
    expect(response.status).to eq(200)

    # pending
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-api-1.0.0.beta spec/requests/rabl_cache_spec.rb