Sha256: 083588496af197547a7c88ea5fbd926807011c42c3d8e1c425c037646cbce2ab
Contents?: true
Size: 656 Bytes
Versions: 2
Compression:
Stored size: 656 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_blob_test" describe Blob do let(:dir){ "abc" } let(:base){ "def" } let(:blob){ Blob.new(dir: dir, base: base) } describe "#export_dir" do it "defaults to the file dir" do blob.export_dir.must_equal blob.file_dir blob.export_dir.must_equal "#{dir}" end end describe "#export_base" do it "it defaults to the file base" do blob.export_base.must_equal blob.file_base blob.export_base.must_match "#{base}" end end describe "#export_path" do it "combines the dir and base" do blob.export_path.must_equal "#{dir}/#{base}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_blob-2.0.0 | test/sixarm_ruby_blob_test/export_test.rb |
sixarm_ruby_blob-1.0.3 | test/sixarm_ruby_blob_test/export_test.rb |