Sha256: 95e71569a82b8465a78891d4cdec0ff2ca3d89a1f1ac62d6c8697b81b19d23c6

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 Bytes

Contents

module RSpecApi
  module DSL
    module Fixtures # rename to Fixtures
      def existing(field)
        # To be overriden
      end

      def unknown(field)
        # To be overriden
      end

      def apply(method_name, options = {})
        options[:to].merge(apply: method_name, value: -> { options[:to][:value].call.send method_name })
      end

      def valid(options = {})
        # TODO: Here change the description
        options
      end

      def invalid(options = {})
        # TODO: Here change the description
        options
      end

      def create_fixture
        # To be overriden
      end

      def destroy_fixture
        # To be overriden
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-api-0.5.0 lib/rspec-api/fixtures/empty.rb