Sha256: da988f26f7f5a3f71d00f275fe7ab89ee351d4c82f6c8c261b5fe1eb63db48d5
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
require 'spec_helper' require 'remarkable/active_model' describe Remarkable::ActiveModel::Matchers::IpMatcher 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
4 entries across 4 versions & 1 rubygems