module Fictium::RSpec::Actions

Public Instance Methods

action_description(text) click to toggle source
# File lib/fictium/rspec/actions.rb, line 27
def action_description(text)
  metadata[:fictium_action].description = text
end
action_docs(description: nil, url:) click to toggle source
# File lib/fictium/rspec/actions.rb, line 39
def action_docs(description: nil, url:)
  metadata[:fictium_action].docs = {}.tap do |docs|
    docs[:url] = url
    docs[:description] = description if description.present?
  end
end
action_summary(text) click to toggle source
# File lib/fictium/rspec/actions.rb, line 23
def action_summary(text)
  metadata[:fictium_action].summary = text
end
deprecate!() click to toggle source
# File lib/fictium/rspec/actions.rb, line 35
def deprecate!
  metadata[:fictium_action].deprecated = true
end
example(*args, **kwargs) click to toggle source
# File lib/fictium/rspec/actions.rb, line 31
def example(*args, **kwargs)
  Fictium::RSpec::Proxies::Example.new(self, args, kwargs)
end
params_in(section, &block) click to toggle source
# File lib/fictium/rspec/actions.rb, line 19
def params_in(section, &block)
  metadata[:fictium_action].add_params_in(section, &block)
end
path(path) click to toggle source
# File lib/fictium/rspec/actions.rb, line 15
def path(path)
  metadata[:fictium_action].path = path
end