2019-08-14 13:34:18 +00:00
|
|
|
require 'minitest/autorun'
|
|
|
|
require 'webdrivers/chromedriver'
|
|
|
|
require_relative '../../lib/lunch_scraper'
|
|
|
|
|
|
|
|
class LunchScraperTest < MiniTest::Spec
|
|
|
|
describe "Getting today's lunch" do
|
|
|
|
it 'can parse out the correct lunch items' do
|
2019-08-14 13:50:57 +00:00
|
|
|
@lunch = LunchScraper.new(Date.today)
|
|
|
|
@lunch.today.size.must_equal 6
|
|
|
|
@lunch.today.first.must_equal 'French Bread Pizza'
|
2019-08-14 13:34:18 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|