Skip to content

Instantly share code, notes, and snippets.

@compwron
Created August 27, 2015 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save compwron/256a8594c87dbbf98359 to your computer and use it in GitHub Desktop.
Save compwron/256a8594c87dbbf98359 to your computer and use it in GitHub Desktop.
testing contexts
require 'spec_helper'
describe 'testing contexts' do
before { p 1 }
context 'aa' do
before { p 2 }
it 'foo' do
expect(42).to eq 42
end
context 'bb' do
before { p 3 }
it 'bar' do
expect(42).to eq 42
end
end
end
end
# 1
# 2
# .1
# 2
# 3
# .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment