Sha256: e89df4fcdc28638441f637df59b101cf83edf0190c73dd0b7ee029ea42ff7615
Contents?: true
Size: 871 Bytes
Versions: 11
Compression:
Stored size: 871 Bytes
Contents
require 'spec_helper' require 'approvals/rspec' describe Approvals::Namers::DirectoryNamer do it "uses non-$%^&*funky example description" do |example| expect(Approvals::Namers::DirectoryNamer.new(example).name).to eq 'approvals_namers_directorynamer/uses_non_funky_example_description' end it "has a decent default" do |example| expect(Approvals::Namers::DirectoryNamer.new(example).output_dir).to eq 'spec/fixtures/approvals/' end context "when RSpec is configured" do before :each do RSpec.configure do |c| c.approvals_path = 'spec/output/dir/' end end after :each do RSpec.configure do |c| c.approvals_path = nil end end it "uses the rspec config option" do |example| expect(Approvals::Namers::DirectoryNamer.new(example).output_dir).to eq 'spec/output/dir/' end end end
Version data entries
11 entries across 11 versions & 2 rubygems