Sha256: 5069f5134a4554a4f414669c922c7121d2c00932375de4905ee5b6e17bce56a9
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 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 false end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remarkable_rails-3.0.1 | lib/remarkable_rails/action_controller/base.rb |