Sha256: 93002dc30d7ad432b2e0c089656339489287c32b397baa1119a922d5e236e5f4
Contents?: true
Size: 840 Bytes
Versions: 4
Compression:
Stored size: 840 Bytes
Contents
module Remarkable module ActionController class Base < Remarkable::Base before_assert :perform_action_with_macro_stubs optional :with_expectations, :default => true optional :with_stubs, :default => true protected # Before assertions, call run_action! to perform the action if it was # not performed yet. # def perform_action_with_macro_stubs #:nodoc: @spec.send(:run_action!, run_with_expectations?) if @spec.send(:controller) end def run_with_expectations? #:nodoc: if @options.key?(:with_stubs) !@options[:with_stubs] elsif @options.key?(:with_expectations) @options[:with_expectations] else true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems