require 'spec_helper'
require 'menu/menu_entry'

module Abc
  describe MenuEntry do
    it "wraps passed children" do
      e = MenuEntry.new('My title', [{:title => 'Child 1'}])
      e.children.first.class.should == MenuEntry
    end
  end
end

require 'spec_helper'
require 'menu/menu_entry'

module Abc
  describe MenuEntry do
    it "wraps passed children" do
      e = MenuEntry.new('My title', [{:title => 'Child 1'}])
      expect(e.children.first).to be_kind_of Abc::MenuEntry
    end
  end
end

Use be_kind_of in class comparison.
Use be_kind_of in class comparison.
