Sha256: 70fc6d970ba1efae32cca86018699292a77bebd5e63d41f0251df3e476fc8797
Contents?: true
Size: 668 Bytes
Versions: 5
Compression:
Stored size: 668 Bytes
Contents
require "test_helper" require "rubycritic/configuration" describe Rubycritic::Configuration do describe "#root" do before do @default = Rubycritic.configuration.root end it "has a default" do Rubycritic.configuration.root.wont_be_empty end it "can be set to a relative path" do Rubycritic.configuration.root = "foo" Rubycritic.configuration.root.must_equal File.expand_path("foo") end it "can be set to an absolute path" do Rubycritic.configuration.root = "/foo" Rubycritic.configuration.root.must_equal "/foo" end after do Rubycritic.configuration.root = @default end end end
Version data entries
5 entries across 5 versions & 1 rubygems