Files
growstuff/spec/models/product_spec.rb

11 lines
179 B
Ruby

require 'rails_helper'
describe Product do
it "stringifies using the name" do
@product = FactoryGirl.create(:product)
@product.to_s.should eq @product.name
end
end