Skip to content

Instantly share code, notes, and snippets.

@domgetter
Created August 4, 2014 15:32
Show Gist options
  • Save domgetter/cb74c6258a398ba5c034 to your computer and use it in GitHub Desktop.
Save domgetter/cb74c6258a398ba5c034 to your computer and use it in GitHub Desktop.
its as an example group in rspec
describe Pitch
let(:pitch) {Pitch.new}
describe "#+" do
context "when you add 1 to a pitch" do
its "frequency is bigger" do
expect((pitch + 1).frequency).to be > pitch.frequency
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment