Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Last active February 14, 2018 11:32
Show Gist options
  • Save tbuehlmann/277a976398cb681806265659a71b30f3 to your computer and use it in GitHub Desktop.
Save tbuehlmann/277a976398cb681806265659a71b30f3 to your computer and use it in GitHub Desktop.
RSpec.describe 'Something' do
subject { described_class.new([item]) }
before { subject.update_args }
context 'this item' do
let(:item) { Item.new('item', 1, 0) }
it 'foos' do
expect(item.sell_in).to eq(0)
end
end
context 'that other item' do
let(:item) { Item.new(1, 1) }
it 'bars' do
# ...
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment