Created
March 31, 2015 16:39
-
-
Save myronmarston/d9b74961cb5e5d81e6b4 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
require_relative '../order.rb' | |
describe Order do | |
def new_order(input) | |
order = Order.new | |
allow(order).to receive(:input).and_return(input) | |
order | |
end | |
it 'gets dish number as input' do | |
expect(new_order("1").dish_number).to eq(1) | |
end | |
it 'checks valid dish' do | |
expect(new_order("1")).to be_valid_dish | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment