Skip to content

Commit

Permalink
Fix specs for old rubies
Browse files Browse the repository at this point in the history
  • Loading branch information
nbulaj committed Aug 25, 2017
1 parent 65f3bf2 commit b443cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/manager_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

manager.proxies.each do |proxy|
expect(proxy.addr).to match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/i)
expect(proxy.port).to be_instance_of(Integer)
expect(proxy.port).to be_a_kind_of(Numeric)
expect(proxy.type).not_to be_empty
expect(proxy.country).not_to be_empty
expect(proxy.anonymity).not_to be_empty

expect(proxy.response_time).to be_nil.or(be_instance_of(Integer))
expect(proxy.response_time).to be_nil.or(be_a_kind_of(Numeric))
end
end

Expand Down

0 comments on commit b443cbc

Please sign in to comment.