spec/grocer/feedback_connection_spec.rb in grocer-0.2.0 vs spec/grocer/feedback_connection_spec.rb in grocer-0.3.0
- old
+ new
@@ -15,47 +15,47 @@
Grocer::Connection.any_instance.expects(:write).with('Note Eye Fly')
subject.write('Note Eye Fly')
end
it 'can be initialized with a certificate' do
- subject.certificate.should == '/path/to/cert.pem'
+ expect(subject.certificate).to eq('/path/to/cert.pem')
end
it 'can be initialized with a passphrase' do
options[:passphrase] = 'open sesame'
- subject.passphrase.should == 'open sesame'
+ expect(subject.passphrase).to eq('open sesame')
end
it 'defaults to Apple feedback gateway in production environment' do
Grocer.stubs(:env).returns('production')
- subject.gateway.should == 'feedback.push.apple.com'
+ expect(subject.gateway).to eq('feedback.push.apple.com')
end
it 'defaults to the sandboxed Apple feedback gateway in development environment' do
Grocer.stubs(:env).returns('development')
- subject.gateway.should == 'feedback.sandbox.push.apple.com'
+ expect(subject.gateway).to eq('feedback.sandbox.push.apple.com')
end
it 'defaults to the sandboxed Apple feedback gateway in test environment' do
Grocer.stubs(:env).returns('test')
- subject.gateway.should == 'feedback.sandbox.push.apple.com'
+ expect(subject.gateway).to eq('feedback.sandbox.push.apple.com')
end
it 'defaults to the sandboxed Apple feedback gateway for other random values' do
Grocer.stubs(:env).returns('random')
- subject.gateway.should == 'feedback.sandbox.push.apple.com'
+ expect(subject.gateway).to eq('feedback.sandbox.push.apple.com')
end
it 'can be initialized with a gateway' do
options[:gateway] = 'gateway.example.com'
- subject.gateway.should == 'gateway.example.com'
+ expect(subject.gateway).to eq('gateway.example.com')
end
it 'defaults to 2196 as the port' do
- subject.port.should == 2196
+ expect(subject.port).to eq(2196)
end
it 'can be initialized with a port' do
options[:port] = 443
- subject.port.should == 443
+ expect(subject.port).to eq(443)
end
end