Sha256: 8ea0b8c65278ba79ce9b861eb1a7832b37e41447dc3cf59e2093fc5377486200
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class LightningCompletionTest < Test::Unit::TestCase context "Completion" do before(:each) { @key = 'blah'; Lightning.bolts[@key].stub!(:completions, :return=>%w{at ap blah}) } test "from script matches correctly" do assert_arrays_equal Lightning::Completion.complete('cd-test a', @key), %w{at ap} end test "for basic case matches correctly" do @completion = Lightning::Completion.new('cd-test a', @key) assert_arrays_equal @completion.matches, %w{at ap} end test "with test flag matches correctly" do @completion = Lightning::Completion.new('cd-test -test a', @key) assert_arrays_equal @completion.matches, %w{at ap} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cldwalker-lightning-0.1.2 | test/lightning_completion_test.rb |