spec/sunspot/rails/tester_spec.rb in sunspot-rails-tester-0.0.2 vs spec/sunspot/rails/tester_spec.rb in sunspot-rails-tester-0.0.3

- old
+ new

@@ -3,11 +3,11 @@ module Sunspot module Rails describe Tester do let(:tester) { described_class } - describe '.fork_original_sunspot_session' do + describe '.start_original_sunspot_session' do let(:server) { double('sunspot_rails_server') } let(:pid) { 5555 } before do Sunspot::Rails::Server.should_receive(:new).and_return(server) @@ -17,20 +17,20 @@ end after { tester.clear } it 'sets the "server" attribute' do - tester.fork_original_sunspot_session + tester.start_original_sunspot_session tester.server.should eq(server) end it 'sets the "started" attribute' do - tester.fork_original_sunspot_session + tester.start_original_sunspot_session tester.started.should be_an_instance_of(Time) end it 'sets the "pid" attribute' do - tester.fork_original_sunspot_session + tester.start_original_sunspot_session tester.pid.should eq(pid) end end describe '.started?' do \ No newline at end of file