Module: TestBench::Session::Controls::Path::File::Create::Comment::Content

Defined in:
lib/test_bench/session/controls/path/file/create.rb

Class Method Summary collapse

Class Method Details

.example(text: nil) ⇒ Object



93
94
95
96
97
98
99
100
101
102
103
# File 'lib/test_bench/session/controls/path/file/create.rb', line 93

def self.example(text: nil)
  text ||= Comment.text

  <<~RUBY
  comment_text = #{text.inspect}

  commented = #{Controls::Events::Commented}.example(text: comment_text)

  Session.instance.record_event(commented)
  RUBY
end