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

  "  comment_text = \#{text.inspect}\n\n  commented = \#{Controls::Events::Commented}.example(text: comment_text)\n\n  Session.instance.record_event(commented)\n  RUBY\nend\n"