Sha256: c7190191528c909129ce70224e059c3cafaceb34c88d3bb23f957724fab90250

Contents?: true

Size: 152 Bytes

Versions: 14

Compression:

Stored size: 152 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_open_port do
  match do |actual|
    !system("lsof -i:#{actual}", out: "/dev/null")
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cypress_rails-0.9.3 spec/support/matchers/be_open_port.rb
cypress_rails-0.9.2 spec/support/matchers/be_open_port.rb
cypress_rails-0.9.1 spec/support/matchers/be_open_port.rb
cypress_rails-0.9.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.8.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.7.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.6.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.5.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.4.2 spec/support/matchers/be_open_port.rb
cypress_rails-0.4.1 spec/support/matchers/be_open_port.rb
cypress_rails-0.4.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.3.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.2.0 spec/support/matchers/be_open_port.rb
cypress_rails-0.1.0 spec/support/matchers/be_open_port.rb