Sha256: 2fcab09e82677d22343bb6f58c7ccb2bb9ed3c9eef46a47d45c0e76b37c00b3e
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') module Spackle describe Configuration do before do @subject = Spackle::Configuration.new end it { should respond_to(:callback_command=) } it { should respond_to(:callback_command) } it { should respond_to(:tempdir=) } it { should respond_to(:tempdir) } it { should respond_to(:error_formatter=) } it { should respond_to(:error_formatter) } it { should respond_to(:spackle_file=) } it { should respond_to(:spackle_file) } it { should respond_to(:set_defaults_for) } it "should raise an error if defaults_for receives an unrecognized argument" do lambda { @subject.set_defaults_for :something_invalid }.should raise_error(ArgumentError) end describe "defaults for vim" do before do @subject.set_defaults_for :vim end it "should set the editor to spackle-vim-load-quickfix" do @subject.callback_command.should == "spackle-vim-load-quickfix" end it "should set the error formatter to :vim_quickfix" do @subject.error_formatter.should == :vim_quickfix end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spackle-0.0.3 | spec/spackle/configuration_spec.rb |
spackle-0.0.2 | spec/spackle/configuration_spec.rb |
spackle-0.0.1 | spec/spackle/configuration_spec.rb |