Sha256: b9f678adea440bbc2e8b538b762603b0f6ee3a51a3a7f07048b09f48601db307

Contents?: true

Size: 268 Bytes

Versions: 7

Compression:

Stored size: 268 Bytes

Contents

require "rspec/core"
require "rspec-virtus/matcher"
require "rspec-virtus/version"

module RSpec
  module Virtus
    def have_attribute(attribute_name)
      Matcher.new(attribute_name)
    end
  end
end

RSpec.configure do |config|
  config.include RSpec::Virtus
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-virtus-1.0.2 lib/rspec-virtus.rb
rspec-virtus-1.0.1 lib/rspec-virtus.rb
rspec-virtus-0.2.0 lib/rspec-virtus.rb
rspec-virtus-1.0.0 lib/rspec-virtus.rb
rspec-virtus-0.1.1 lib/rspec-virtus.rb
rspec-virtus-0.1.0 lib/rspec-virtus.rb
rspec-virtus-0.0.1 lib/rspec-virtus.rb