Sha256: 02769c9279fbe76c113be365c8acfcefd92b6110c21967edfd807763938b2727
Contents?: true
Size: 618 Bytes
Versions: 35
Compression:
Stored size: 618 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "spec_helper") describe Redcar::Notebook do describe "with no tabs" do class NotebookTestTab < Redcar::Tab end before do @notebook = Redcar::Notebook.new(nil) end it "reports its length" do @notebook.length.should == 0 end it "accepts new tabs and reports them to the controller" do tab_result = nil @notebook.add_listener(:tab_added) do |tab| tab_result = tab end @notebook.new_tab NotebookTestTab tab_result.should be_an_instance_of(NotebookTestTab) end end end
Version data entries
35 entries across 35 versions & 1 rubygems