diff options
Diffstat (limited to 'Library/Homebrew/test/formulary_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/formulary_spec.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/test/formulary_spec.rb b/Library/Homebrew/test/formulary_spec.rb index 7a7c8811a..234ebc93c 100644 --- a/Library/Homebrew/test/formulary_spec.rb +++ b/Library/Homebrew/test/formulary_spec.rb @@ -27,16 +27,6 @@ describe Formulary do let(:bottle_dir) { Pathname.new("#{TEST_FIXTURE_DIR}/bottles") } let(:bottle) { bottle_dir/"testball_bottle-0.1.#{Utils::Bottles.tag}.bottle.tar.gz" } - describe "::load_formula" do - it "does not allow namespace repetition" do |example| - definition = "Foo = Class.new(Formula)" - namespace = "Test#{example.description.hash.abs}" - subject.load_formula("foo", "bar", definition, namespace) - expect { subject.load_formula("foo", "bar", definition, namespace) } - .to raise_error RuntimeError, /already.* loaded/ - end - end - describe "::class_s" do it "replaces '+' with 'x'" do expect(subject.class_s("foo++")).to eq("Fooxx") |
