2011-10-08 15:50:17 +00:00
|
|
|
require File.join(File.dirname(__FILE__), "spec_helper.rb")
|
|
|
|
|
|
|
|
describe Teamocil::Layout do
|
|
|
|
context "initializing" do
|
|
|
|
|
|
|
|
it "create two windows" do # {{{
|
2011-10-10 12:54:26 +00:00
|
|
|
layout = Teamocil::Layout.new(layouts["two-windows"], {})
|
2011-10-08 15:50:17 +00:00
|
|
|
commands = layout.generate_commands
|
|
|
|
commands.grep(/new-window/).length.should be 2
|
|
|
|
end # }}}
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|