# encoding: utf-8 require 'spec_helper' describe Function::Predicate::Match, '#inspect' do subject { object.inspect } let(:attribute) { Attribute::String.new(:name) } let(:object) { described_class.new(attribute, /Dan Kubb/) } it { should == "(#{attribute.inspect} =~ #{/Dan Kubb/.inspect})" } end