Sha256: fb90bb18a0dff5b712c3f0c5031d358b20e4c46e61c17cd88a4f749cb2f7402f

Contents?: true

Size: 270 Bytes

Versions: 249

Compression:

Stored size: 270 Bytes

Contents

RSpec::Matchers.define :be_opened do |port|
  match do |sg|
    sg.opened?(port, @protocol, @cidr)
  end

  chain :protocol do |protocol|
    @protocol = protocol
  end

  chain :for do |cidr|
    @cidr = cidr
  end

  chain :target do |cidr|
    @cidr = cidr
  end
end

Version data entries

249 entries across 249 versions & 4 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/matcher/be_opened.rb
cthiesfork-awspec-1.2.1 lib/awspec/matcher/be_opened.rb
awspec-1.18.5 lib/awspec/matcher/be_opened.rb
cthiesfork-awspec-1.2.0 lib/awspec/matcher/be_opened.rb
cthiesfork-awspec-1.1.0 lib/awspec/matcher/be_opened.rb
cthiesfork-awspec-1.0.0 lib/awspec/matcher/be_opened.rb
awspec-1.18.4 lib/awspec/matcher/be_opened.rb
awspec-1.18.3 lib/awspec/matcher/be_opened.rb
awspec-1.18.2 lib/awspec/matcher/be_opened.rb
awspec-1.18.1 lib/awspec/matcher/be_opened.rb
awspec-1.18.0 lib/awspec/matcher/be_opened.rb
awspec-1.17.4 lib/awspec/matcher/be_opened.rb
awspec-1.17.3 lib/awspec/matcher/be_opened.rb
awspec-1.17.2 lib/awspec/matcher/be_opened.rb
awspec-1.17.1 lib/awspec/matcher/be_opened.rb
awspec-1.17.0 lib/awspec/matcher/be_opened.rb
awspec-1.16.1 lib/awspec/matcher/be_opened.rb
awspec-1.16.0 lib/awspec/matcher/be_opened.rb
awspec-1.15.3 lib/awspec/matcher/be_opened.rb
awspec-1.15.2 lib/awspec/matcher/be_opened.rb