<commit_before>require 'spec_helper'

describe Henson::PuppetModule do
  describe "module with opts" do
    describe "that are valid" do
      let(:mod) { Henson::PuppetModule.new 'example', '0', :path => "/foo/bar/baz" }

      it "must have a source" do
        mod.source.should_not be_nil
      end
    end

    describe "that are invalid" do
      it "aborts with a message" do
        lambda {
          Henson::PuppetModule.new 'example', '0', :foo => 'bar'
        }.should raise_error(SystemExit, "Invalid source for example")
      end
    end
  end
end<commit_msg>context over nested describes<commit_after>require 'spec_helper'

describe Henson::PuppetModule do
  context "module with opts" do
    context "that are valid" do
      let(:mod) { Henson::PuppetModule.new 'example', '0', :path => "/foo/bar/baz" }

      it "must have a source" do
        mod.source.should_not be_nil
      end
    end

    context "that are invalid" do
      it "aborts with a message" do
        lambda {
          Henson::PuppetModule.new 'example', '0', :foo => 'bar'
        }.should raise_error(SystemExit, "Invalid source for example")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10834049871023216, 'fraction_numerical': 0.0034393809114359416, 'mean_word_length': 2.660377358490566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3497834', 'n_tokens_mistral': 372, 'n_tokens_neox': 361, 'n_words': 118}