require File.expand_path(File.dirname(__FILE__)) + '/../spec_helper'

describe Termtter::Client, 'when the plugin fib is loaded' do
  it 'adds command fib' do
    Termtter::Client.should_receive(:register_command).once
    Termtter::Client.plug 'defaults/fib'
  end

  it 'defines fib method' do
    pending("Not yet implemented")
    Termtter::Client.plug 'defaults/fib'
    (0..10).map {|i| fib i }.should == [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
  end
end
