Sha256: 4fe09a526b9abd4813b015eb0833bed2d90181e142b8322760c62500fceaa6b5

Contents?: true

Size: 332 Bytes

Versions: 19

Compression:

Stored size: 332 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')

describe 'request lifecycle', :type => :controller do
  controller_name :posts

  it 'should automatically commit after each action' do
    post :create, :post => { :title => 'Test 1' }
    PostWithAuto.search { with :title, 'Test 1' }.results.should_not be_empty
  end
end

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
adamsalter-sunspot_rails-0.10.4 spec/request_lifecycle_spec.rb
bsy-sunspot_rails-0.10.4 spec/request_lifecycle_spec.rb
kuahyeow-sunspot_rails-0.10.5 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.10.0 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.10.1 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.10.2 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.10.3 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.10.4 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.10 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.11 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.12 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.4 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.6 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.7 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.8 spec/request_lifecycle_spec.rb
outoftime-sunspot_rails-0.9.9 spec/request_lifecycle_spec.rb
pallan-sunspot_rails-0.9.10 spec/request_lifecycle_spec.rb
pallan-sunspot_rails-0.9.12 spec/request_lifecycle_spec.rb
sunspot_rails-0.10.4 spec/request_lifecycle_spec.rb