RSpec doesn't modify the ruby interpreter in any way, so constructs that are possible in Ruby are possible in RSpec. In ruby you have to use `elsif` (not `elseif`).
HTH, Myron On Fri, Jan 29, 2016 at 10:23 AM, Sasha S <[email protected]> wrote: > I am trying to create a conditional block like; > if > action > elseif > action > else > > > I cannot find anywhere the correct way for elseif part of this block. Is > it possible in RSpec? > > Thanks, > Sasha > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/a7c9ef38-8271-4b6e-be27-a2306bd0727a%40googlegroups.com > <https://groups.google.com/d/msgid/rspec/a7c9ef38-8271-4b6e-be27-a2306bd0727a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CADUxQmtR%2BZ58rjDwybq169R-aws9MRwAQPrb4snpEm1XUY4-cA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
