lib/sass_spec/test.rb
# If the runner is running in interactive mode, runs the interaction defined
# in the block and returns the result. Otherwise, just returns the default
# value.
If the runner is running in interactive mode, runs the interaction defined
in the block and returns the result. Otherwise, just returns the default
value.
If the runner is running in interactive mode runs the interaction defined in the block and returns the result . Otherwise just returns the default value .
def interact(prompt_id, default, dir = @test_case.folder, &block)
    if @options[:interactive]
      relative_path = Pathname.new(dir).relative_path_from(Pathname.new(Dir.pwd))
      print "\nIn test case: #{relative_path}"
      return SassSpec::Interactor.interact_with_memory(@@interaction_memory, prompt_id, &block)
    else
      return default
    end
  end
def interact ( prompt_id , default , dir = @test_case . folder , & block ) if @options [ :interactive ] relative_path = Pathname . new ( dir ) . relative_path_from ( Pathname . new ( Dir . pwd ) ) print "\nIn test case: #{relative_path}" return SassSpec :: Interactor . interact_with_memory ( @@interaction_memory , prompt_id , & block ) else return default end end
If the runner is running in interactive mode, runs the interaction defined
in the block and returns the result.
If the runner is running in interactive mode runs the interaction defined in the block and returns the result .
prompt_id
<not_specific>
default
<not_specific>
dir
<not_specific>
folder
<not_specific>
block
<not_specific>