Sha256: c067744566069a1f2845b3e668803e0ec59f9886d2fe08c6e8243cb06fc99c27

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

require 'spec_helper'

require 'ronin/vendor'

describe Vendor do
  let(:name) { 'TestCo' }

  subject { described_class.new(:name => name) }

  describe "validations" do
    it "should require name attribute" do
      product = described_class.new
      expect(product).not_to be_valid

      product.name = name
      expect(product).to be_valid
    end
  end

  describe "#to_s" do
    it "should include the vendor name" do
      expect(subject.to_s).to eq(name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-1.5.1 spec/vendor_spec.rb