Sha256: 6d90db26382a5846ea060dfb3755a58a769f116e52c4a9b39f24667fbefac690
Contents?: true
Size: 801 Bytes
Versions: 8
Compression:
Stored size: 801 Bytes
Contents
require 'spec_helper' describe Approvals::Namers::RSpecNamer do it "uses non-$%^&*funky example description" do Approvals::Namers::RSpecNamer.new(self.example).name.should eq("approvals_namers_rspecnamer_uses_non_funky_example_description") end it "has a decent default" do Approvals::Namers::RSpecNamer.new(self.example).output_dir.should 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 Approvals::Namers::RSpecNamer.new(self.example).output_dir.should eq('spec/output/dir/') end end end
Version data entries
8 entries across 8 versions & 1 rubygems