Sha256: e015a55c28f6500abac01e063891293b69a0a372ab2413bae3b7f17dec7ed195

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'
require 'remarkable/active_model'

describe Remarkable::ActiveModel::Matchers::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_domain_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

Version Path
validates_host-0.3.1 spec/validates_host/remarkable/host_name_matcher_spec.rb
validates_host-0.3.0 spec/validates_host/remarkable/host_name_matcher_spec.rb
validates_host-0.2.0 spec/validates_host.rb/remarkable/host_name_matcher_spec.rb
validates_host-0.1.0 spec/validates_host.rb/remarkable/host_name_matcher_spec.rb