lib/rambo/document_generator.rb in rambo_ruby-0.3.0 vs lib/rambo/document_generator.rb in rambo_ruby-0.3.1

- old
+ new

@@ -13,11 +13,11 @@ generator = new(file, options) generator.generate_spec_dir! generator.generate_matcher_dir! generator.generate_examples! generator.generate_spec_file! - generator.generate_rambo_helper! + generator.generate_rambo_helper!(options) generator.generate_matchers! end end def initialize(file, options={}) @@ -41,21 +41,23 @@ end def generate_rambo_helper! Rambo::RSpec::HelperFile.new( template_path: File.expand_path("../rspec/templates/rambo_helper_file_template.erb", __FILE__), - file_path: "spec/rambo_helper.rb" + file_path: "spec/rambo_helper.rb", + raml: raml, + options: options ).generate end def generate_matcher_dir! FileUtils.mkdir_p("spec/support/matchers") end def generate_matchers! Rambo::RSpec::HelperFile.new( template_path: File.expand_path("../rspec/templates/matcher_file_template.erb", __FILE__), - file_path: "spec/support/matchers/rambo_matchers.rb" + file_path: "spec/support/matchers/rambo_matchers.rb", raml: nil ).generate end end end