spec/lib/server_spec.rb in doorkeeper-1.0.0.rc2 vs spec/lib/server_spec.rb in doorkeeper-1.0.0

- old
+ new

@@ -19,10 +19,10 @@ expect { subject.token_request(:code) }.to raise_error(Doorkeeper::Errors::InvalidTokenStrategy) end it 'builds the request with selected strategy' do stub_const 'Doorkeeper::Request::Code', fake_class - fake_class.should_receive(:build).with(subject) + expect(fake_class).to receive(:build).with(subject) subject.authorization_request :code end end end