Skip to content

Instantly share code, notes, and snippets.

@r3id
Created Apr 5, 2020
Embed
What would you like to do?
Rspec Tutorial
class Dog
def bark
"Meow!"
end
end
require 'rspec'
require_relative 'dog'
describe Dog do
describe '#bark' do
it 'returns the string "Woof!"' do
expect(subject.bark).to eql('Woof!')
end
end
end
source 'https://rubygems.org'
gem 'rspec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment