diff options
Diffstat (limited to 'template/ruby')
-rw-r--r-- | template/ruby/base-bench.rb | 7 | ||||
-rw-r--r-- | template/ruby/base-rspec.rb | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/template/ruby/base-bench.rb b/template/ruby/base-bench.rb new file mode 100644 index 0000000..3e5f517 --- /dev/null +++ b/template/ruby/base-bench.rb @@ -0,0 +1,7 @@ +require 'benchmark' + +Benchmark.bm 10 do |r| + r.report "{{_input_:label}}" do + {{_cursor_}} + end +end diff --git a/template/ruby/base-rspec.rb b/template/ruby/base-rspec.rb new file mode 100644 index 0000000..46e7897 --- /dev/null +++ b/template/ruby/base-rspec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe {{_input_:name}}, type: :{{_input_:type}} do + {{_cursor_}} +end |