Sha256: 23e1a641c239c547de869e4fb6c58bc9168a64c6b56f003281e68527999ea2d1
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' require 'shoulda-matchers' describe Shoulda::Matchers::ActiveModel::HostNameMatcher do before :each do @server = Server.new end it "should accept on host_name" do @server.should require_a_valid_host_name(:host_name) end it "should accept without a specified attribute" do @server.should require_a_valid_host_name end it "should reject on domain_name" do @server.should_not require_a_valid_host_name(:domain_name) end end
Version data entries
4 entries across 4 versions & 1 rubygems