spec/buckaroo-ideal/response_spec.rb in buckaroo-ideal-0.0.1 vs spec/buckaroo-ideal/response_spec.rb in buckaroo-ideal-0.0.2
- old
+ new
@@ -50,27 +50,25 @@
it 'has a test_mode' do
response.test_mode.should == true
end
it 'has a time' do
- response.time.should == Time.new(2012, 05, 22, 12, 58, 13)
+ response.time.should == Time.local(2012, 05, 22, 12, 58, 13)
end
it 'has a timestamp' do
response.timestamp.should == '22-05-2012 12:58:13'
end
describe '#valid?' do
it 'returns true if the signature is valid' do
- response.signature.stub(:valid?)
- .and_return(true)
+ response.signature.stub(:valid?).and_return(true)
response.should be_valid
end
it 'returns false if the signature if not valid' do
- response.signature.stub(:valid?)
- .and_return(false)
+ response.signature.stub(:valid?).and_return(false)
response.should_not be_valid
end
end
end