Sha256: afbad502d331d120591b8849c6313bc52b044ae899660415597d31b74a2c4025

Contents?: true

Size: 359 Bytes

Versions: 21

Compression:

Stored size: 359 Bytes

Contents

require 'spec_helper'

require 'ronin/vendor'

describe Vendor do
  it "should require name attribute" do
    product = Vendor.new
    product.should_not be_valid

    product.name = 'TestCo'
    product.should be_valid
  end

  it "should be convertable to a String" do
    vendor = Vendor.new(:name => 'TestCo')
    vendor.to_s.should == 'TestCo'
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ronin-1.5.0 spec/vendor_spec.rb
ronin-1.5.0.rc2 spec/vendor_spec.rb
ronin-1.5.0.rc1 spec/vendor_spec.rb
ronin-1.4.1 spec/vendor_spec.rb
ronin-1.4.0 spec/vendor_spec.rb
ronin-1.4.0.rc2 spec/vendor_spec.rb
ronin-1.4.0.rc1 spec/vendor_spec.rb
ronin-1.3.0 spec/vendor_spec.rb
ronin-1.2.0 spec/vendor_spec.rb
ronin-1.1.0 spec/vendor_spec.rb
ronin-1.1.0.rc3 spec/vendor_spec.rb
ronin-1.1.0.rc2 spec/vendor_spec.rb
ronin-1.1.0.rc1 spec/vendor_spec.rb
ronin-1.0.0 spec/vendor_spec.rb
ronin-1.0.0.rc3 spec/vendor_spec.rb
ronin-1.0.0.rc2 spec/vendor_spec.rb
ronin-1.0.0.rc1 spec/vendor_spec.rb
ronin-1.0.0.pre4 spec/vendor_spec.rb
ronin-1.0.0.pre3 spec/vendor_spec.rb
ronin-1.0.0.pre2 spec/vendor_spec.rb