Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created March 31, 2015 16:39
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 myronmarston/d9b74961cb5e5d81e6b4 to your computer and use it in GitHub Desktop.
Save myronmarston/d9b74961cb5e5d81e6b4 to your computer and use it in GitHub Desktop.
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