spec/tiddle_spec.rb in tiddle-1.0.1 vs spec/tiddle_spec.rb in tiddle-1.0.2
- old
+ new
@@ -22,10 +22,10 @@
end
it "sets last_used_at field" do
Tiddle.create_and_return_token(@user, FakeRequest.new)
expect(@user.authentication_tokens.last.last_used_at)
- .to be_within(1).of(DateTime.current)
+ .to be_within(1).of(Time.current)
end
it "saves ip address" do
Tiddle.create_and_return_token @user,
FakeRequest.new(remote_ip: "123.101.54.1")