Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 413 Bytes
require 'minitest_helper'
describe License do
it "will be valid with all required fields" do
license = FactoryGirl.build(:license)
license.must_be :valid?
license.errors.must_be :empty?
end
it "wont be valid without license_key" do
license = FactoryGirl.build(:license, :license_key => nil)
license.wont_be :valid?
license.errors.has_key?(:license_key).must_equal true
end
end
Jump to Line
Something went wrong with that request. Please try again.