Skip to content

Instantly share code, notes, and snippets.

@avegancafe
Last active May 17, 2020 18:39
Show Gist options
  • Select an option

  • Save avegancafe/3ecbce168f9e313b9d4de165f7c3788e to your computer and use it in GitHub Desktop.

Select an option

Save avegancafe/3ecbce168f9e313b9d4de165f7c3788e to your computer and use it in GitHub Desktop.
Examples for RSpec Formatting Blog Post - space_authority_so_many_objects_spec.rb
describe SpaceAuthority do
let(:property) do
# generic property that might be needed in a couple of places
end
let(:floor) do
# generic floor that might be needed in a couple of places
end
let(:space) do
# generic space that might be needed in a couple of places
end
context 'property tests' do
# testing testing
end
context 'floor tests' do
# testing testing
end
context 'space tests' do
# testing testing
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment