Sha256: 7e0760ec3b230470fcf6444062a8324c8c65a08661afae511e0164814b36f58e
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require_relative '../spec_helper' require 'busser/helpers' describe Busser::Helpers do include Busser::Helpers describe ".suite_path" do it "Returns a Pathname" do suite_path.must_be_kind_of Pathname end describe "with a default root path" do it "Returns a base path if no suite name is given" do suite_path.to_s.must_equal "/opt/busser/suites" end it "Returns a suite path given a suite name" do suite_path("fuzzy").to_s.must_equal "/opt/busser/suites/fuzzy" end end describe "with a custom root path" do before { ENV['_SPEC_BUSSER_ROOT'] = ENV['BUSSER_ROOT'] } after { ENV['BUSSER_ROOT'] = ENV.delete('_SPEC_BUSSER_ROOT') } it "Returns a base path if no suite name is given" do ENV['BUSSER_ROOT'] = "/path/to/busser" suite_path.to_s.must_equal "/path/to/busser/suites" end it "Returns a suite path given a suite name" do ENV['BUSSER_ROOT'] = "/path/to/busser" suite_path("fuzzy").to_s.must_equal "/path/to/busser/suites/fuzzy" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
busser-0.2.0 | spec/busser/helpers_spec.rb |
busser-0.1.1 | spec/busser/helpers_spec.rb |
busser-0.1.0 | spec/busser/helpers_spec.rb |