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.0.0.pre1 | spec/vendor_spec.rb |