Sha256: d75e0b33dda82382eef8229c608cda4675d078ddee73a586315450e1031865a3
Contents?: true
Size: 774 Bytes
Versions: 22
Compression:
Stored size: 774 Bytes
Contents
require 'dummy_spec_helper' require 'integration/performance/helpers/ability_api' describe "CanTango::Ability performance" do before(:each) do @user = User.create! :name => 'stanislaw', :role => 'user', :email => 'stanislaw@mail.ru' Article.create!(:title => 'one') end context "With cache enabled" do describe 'Memory store' do before do CanTango.configure do |config| config.cache.set :on config.cache.store.default_type = :memory end end it "3 requests" do get '/login_user/stanislaw' puts "\n\nFirst Request" get "/articles" puts "\n\nSecond Request" get "/articles" puts "\n\nThird Request" get "/articles" end end end end
Version data entries
22 entries across 22 versions & 1 rubygems