Skip to content

Commit

Permalink
Mejorando to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
alu0100972016 committed Jan 8, 2019
1 parent 3c9896c commit a7a21ec
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions spec/menu_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
require 'InformacionNutricional/menu.rb'

RSpec.describe "Menu" do

before :all do

it "has a version number" do
expect(InformacionNutricional::VERSION).not_to be nil
end

it "inicializar menu" do
@menu = Menu.new("Lunes") do
titulo "Bajo en calorías"
ingesta :min => 30,
Expand Down Expand Up @@ -52,13 +56,6 @@
:proteinas => 3.1,
:sal => 0.13
end
end

it "has a version number" do
expect(InformacionNutricional::VERSION).not_to be nil
end

it "has a to_s" do
puts @menu.to_s
end

Expand Down

0 comments on commit a7a21ec

Please sign in to comment.