Sha256: 8e548c87b31aa110c6ca55d7cccbee3bcffd26c1177a445f7bbd5c9950be17eb

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

module RSpec
  module Siren
    module Matchers
      autoload :HasClass, "rspec/siren/matchers/has_class"
      autoload :HasEntities, "rspec/siren/matchers/has_entities"
      autoload :HasLink, "rspec/siren/matchers/has_link"
      autoload :HasProperty, "rspec/siren/matchers/has_property"

      def have_class(expected_class)
        HasClass.new(expected_class)
      end

      def have_entities
        HasEntities.new
      end

      def have_link_with_rel(expected_rel)
        HasLink.new(expected_rel)
      end

      def have_property(expected_name)
        HasProperty.new(expected_name)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-siren-1.0.1 lib/rspec/siren/matchers.rb
rspec-siren-1.0.0 lib/rspec/siren/matchers.rb