Last active
February 14, 2018 11:32
-
-
Save tbuehlmann/277a976398cb681806265659a71b30f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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