Sha256: cf66ec5c7c47407cf277ade7fa3dede677f3d3a238e0caecfdae54b7a93a7825
Contents?: true
Size: 875 Bytes
Versions: 144
Compression:
Stored size: 875 Bytes
Contents
require 'test_helper' class BusinessSupport::LocationTest < ActiveSupport::TestCase setup do @region = BusinessSupport::Location.create(name: "Ecclefechan", slug: "ecclefechan") end test "should validates presence of name" do refute BusinessSupport::Location.new(slug: "ecclefechan").valid? end test "should validate uniqueness of name" do another_scheme = BusinessSupport::Location.new(name: "Ecclefechan", slug: "ecclefechan") refute another_scheme.valid?, "should validate uniqueness of name." end test "should validate presence of slug" do refute BusinessSupport::Location.new(name: "Ecclefechan").valid? end test "should validate uniqueness of slug" do another_scheme = BusinessSupport::Location.new(name: "Ecclefechan", slug: "ecclefechan") refute another_scheme.valid?, "should validate uniqueness of slug" end end
Version data entries
144 entries across 144 versions & 1 rubygems