Sha256: d96232b0e79eef2e5e195a30ab7f1e74b7ebf0eb8a430a0ad30873ad094382a7

Contents?: true

Size: 756 Bytes

Versions: 4

Compression:

Stored size: 756 Bytes

Contents

describe ProMotionSlideMenu::AppDelegate do

  before do
    @delegate = App.delegate
  end

  it "should have a 'slide_menu' attribute" do
    @delegate.respond_to?(:slide_menu).should == true
  end

  it "should not have a slide menu by default" do
    @delegate.has_slide_menu?.should == false
  end

  it "should respond to 'open_slide_menu'" do
    @delegate.respond_to?(:open_slide_menu).should == true
  end

  it "#open_slide_menu should return a SlideMenuScreen" do
    @delegate.open_slide_menu(nil, nil).should.be.instance_of ProMotionSlideMenu::SlideMenuScreen
  end 

  it "should have a SlideMenuScreen as the rootViewController" do
    @delegate.window.rootViewController.should.be.instance_of ProMotionSlideMenu::SlideMenuScreen
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pro_motion_slide_menu-0.0.4 spec/app_delegate_spec.rb
pro_motion_slide_menu-0.0.3 spec/app_delegate_spec.rb
pro_motion_slide_menu-0.0.2 spec/app_delegate_spec.rb
pro_motion_slide_menu-0.0.1 spec/app_delegate_spec.rb