<commit_before># RSpec Core

Behaviour Driven Development for Ruby

## Upgrading from rspec-1.x

See Upgrade.markdown

## Install

    gem install rspec --prerelease

This will install the rspec, rspec-core, rspec-expectations and rspec-mocks
gems.

## Get Started

Start with a simple example of behavior you expect from your system. Do
this before you write any implementation code:

    # in spec/calculator_spec.rb
    describe Calculator, "add" do
      it "returns the sum of its arguments" do
        Calculator.new.add(1, 2).should eq(3)
      end
    end

Run this with the rspec command, and watch it fail:

    $ rspec spec/calculator_spec.rb
    ./spec/calculator_spec.rb:1: uninitialized constant Calculator

Implement the simplest solution:

    # in lib/calculator.rb<commit_msg>add link to Upgrade.markdown on github to README<commit_after># RSpec Core

Behaviour Driven Development for Ruby

## Upgrading from rspec-1.x

See [Upgrade.markdown](http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown)

## Install

    gem install rspec --prerelease

This will install the rspec, rspec-core, rspec-expectations and rspec-mocks
gems.

## Get Started

Start with a simple example of behavior you expect from your system. Do
this before you write any implementation code:

    # in spec/calculator_spec.rb
    describe Calculator, "add" do
      it "returns the sum of its arguments" do
        Calculator.new.add(1, 2).should eq(3)
      end
    end

Run this with the rspec command, and watch it fail:

    $ rspec spec/calculator_spec.rb
    ./spec/calculator_spec.rb:1: uninitialized constant Calculator

Implement the simplest solution:

    # in lib/calculator.rb
{'fraction_non_alphanumeric': 0.07337278106508875, 'fraction_numerical': 0.005917159763313609, 'mean_word_length': 3.461741424802111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1595951', 'n_tokens_mistral': 544, 'n_tokens_neox': 512, 'n_words': 188}