RSPEC Shared Beispiele
# declare the shared example
shared_examples 'foo' do
it 'passes do
expect(true).to be true
end
end
context 'using the shared example' do
include_examples 'foo'
end
Mo Lucas