spec/generators/rspec/specs_spec.rb in dslable-0.0.2 vs spec/generators/rspec/specs_spec.rb in dslable-0.0.3
- old
+ new
@@ -1,21 +1,21 @@
# encoding: utf-8
-require "spec_helper"
-require "generators/rspec/specs"
-require "dslable_dsl"
+require 'spec_helper'
+require 'generators/rspec/specs'
+require 'dslable_dsl'
describe Dslable::Generators::RSpec::Specs do
context :generate do
- OUTPUT_SPECS_TMP_DIR = "generate_specs_template"
+ OUTPUT_SPECS_TMP_DIR = 'generate_specs_template'
cases = [
{
case_no: 1,
- case_title: "valid specs template",
- gem_name: "sample_gem",
- specs: ["spec/sample_gem_core_spec.rb"]
+ case_title: 'valid specs template',
+ gem_name: 'sample_gem',
+ specs: ['spec/sample_gem_core_spec.rb']
},
]
cases.each do |c|
it "|case_no=#{c[:case_no]}|case_title=#{c[:case_title]}" do
@@ -45,10 +45,10 @@
Dir.mkdir(OUTPUT_SPECS_TMP_DIR) unless Dir.exists? OUTPUT_SPECS_TMP_DIR
Dir.chdir(OUTPUT_SPECS_TMP_DIR)
end
def case_after(c)
- Dir.chdir("../")
+ Dir.chdir('../')
FileUtils.rm_rf(OUTPUT_SPECS_TMP_DIR) if Dir.exists? OUTPUT_SPECS_TMP_DIR
end
end
end