Sha256: 78837f1905a66dfd6583399640c50599ac93c29c92e0aff09489e3ae1bfa3e81
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
require 'spec_helper' require 'remarkable/active_model' describe Remarkable::ActiveModel::Matchers::DomainNameMatcher do before :each do @server = Server.new end it "should accept on domain_name" do @server.should require_a_valid_domain_name(:domain_name) end it "should accept without a specified attribute" do @server.should require_a_valid_domain_name end it "should reject on host_name" do @server.should_not require_a_valid_domain_name(:host_name) end end
Version data entries
4 entries across 4 versions & 1 rubygems