Sha256: e8cccda070de149fa061bc83caef048f8e4db2089730c5e5583136a0d8084b6b

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

require 'spec_helper'

describe RSpec::Virtus do
  let(:instance) { Class.new { include RSpec::Virtus }.new  }

  describe '#have_attribute' do
    subject { instance.have_attribute(:attribute_name) }

    it 'returns a new matcher instance' do
      expect(subject).to be_an_instance_of(RSpec::Virtus::Matcher)
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rspec-virtus-1.0.2 spec/lib/rspec-virtus_spec.rb
rspec_virtus-1.1.0 spec/lib/rspec_virtus_spec.rb
rspec-virtus-1.0.1 spec/lib/rspec-virtus_spec.rb
rspec-virtus-0.2.0 spec/lib/rspec-virtus_spec.rb
rspec-virtus-1.0.0 spec/lib/rspec-virtus_spec.rb
rspec-virtus-0.1.1 spec/lib/rspec-virtus_spec.rb
rspec-virtus-0.1.0 spec/lib/rspec-virtus_spec.rb
rspec-virtus-0.0.1 spec/lib/rspec-virtus_spec.rb