Sha256: 0adc49b7969b979ee5290d7e513ed0a79e37820f45b13e605c64a12f566b86e2
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
require 'spec_helper' describe Shoulda::Matchers::ActiveModel::RequireAValidIpMatcher do before :each do @server = Server.new end it "should accept on ip" do @server.should require_a_valid_ip(:ip) end it "should accept without a specified attribute" do @server.should require_a_valid_ip end it "should reject on domain_name" do @server.should_not require_a_valid_ip(:domain_name) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
validates_host-1.0.0 | spec/validates_host/require_a_valid_ip_matcher_spec.rb |