Sha256: 8d51f29e6af73542e936024f65fbd027a3ffcd354de8881af976657e0920c4dc

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

require "spec_helper"

describe Brightbox::FirewallPolicy do

  describe "#find_or_call" do

    context "when a policy exists" do
      before do
        options = {
        }
        @policy = Brightbox::FirewallPolicy.create(options)
      end

      it "should show firewall policy", vcr: true do
        output = FauxIO.new do
          firewall_policy = Brightbox::FirewallPolicy.find_or_call([@policy.id])
          Brightbox.render_table(firewall_policy, :vertical => true)
        end
        expect(output.stdout).to include(@policy.id)
      end

      after do
        @policy.destroy
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brightbox-cli-2.2.0 spec/unit/brightbox/firewall_policy/find_or_call_spec.rb