Sha256: d5b6057a5f44ae2962821a163c1456eeed3ee4ed78b14a5a32a1e58c3f973b23
Contents?: true
Size: 720 Bytes
Versions: 4
Compression:
Stored size: 720 Bytes
Contents
describe SengiriYaml do describe "sengiri_yaml" do subject { `bundle exec ./bin/sengiri_yaml #{option}` } context "without 2 args" do let(:option){ "--help" } let(:help) do <<-EOS sengiri_yaml <source_yaml> <destination_dir> EOS end it{ should eq help } end context "with 2 args" do let(:option) { [source_yaml, destination_dir].join(" ") } let(:source_yaml) { "#{spec_dir}/fixtures/writer/hash.yml" } let(:destination_dir){ temp_dir } include_context "uses temp dir" it "should create divided yaml" do subject is_asserted_by{ Dir.glob("#{temp_dir}/*.yml").count == 2 } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sengiri_yaml-0.0.3 | spec/bin/sengitri_spec.rb |
sengiri_yaml-0.0.2 | spec/bin/sengitri_spec.rb |
sengiri_yaml-0.0.1 | spec/bin/sengitri_spec.rb |
sengiri_yaml-0.0.1.beta1 | spec/bin/sengitri_spec.rb |