From 0f5edc9051d1d872bbb799cf2bdda1a41a8b224f Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 19 Jan 2017 16:16:02 +0900 Subject: [PATCH] `2.class` is Integer (instead of Fixnum) in ruby >=2.4 --- spec/models/agent_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/agent_spec.rb b/spec/models/agent_spec.rb index 5b96ffef..7255167f 100644 --- a/spec/models/agent_spec.rb +++ b/spec/models/agent_spec.rb @@ -563,7 +563,7 @@ describe Agent do agent.options = 5 expect(agent.options["hi"]).to eq(2) expect(agent).to have(1).errors_on(:options) - expect(agent.errors_on(:options)).to include("cannot be set to an instance of Fixnum") + expect(agent.errors_on(:options)).to include("cannot be set to an instance of #{2.class}") # Integer (ruby >=2.4) or Fixnum (ruby <2.4) end it "should not allow source agents owned by other people" do