Sha256: d2123623a8f19c74ef7fd26ae1520e9b4110a875bc9d04bf00ebf5828fdedbb2

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'
require 'remarkable/active_model'

describe Remarkable::ActiveModel::Matchers::SubnetMatcher do
  before :each do
    @subnet = Subnet.new
  end

  it "should accept on value" do
    @subnet.should require_a_valid_subnet(:value)
  end

  it "should accept without a specified attribute" do
    @subnet.should require_a_valid_subnet
  end

  it "should reject on id" do
    @subnet.should_not require_a_valid_subnet(:id)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validates_host-0.3.1 spec/validates_host/remarkable/subnet_matcher_spec.rb
validates_host-0.3.0 spec/validates_host/remarkable/subnet_matcher_spec.rb