mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
2.class
is Integer (instead of Fixnum) in ruby >=2.4
This commit is contained in:
parent
7ea7cca804
commit
0f5edc9051
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue