Sha256: a1a8965f5795d3aa8f9ca604f9333c3c511195594d3e91fe042aab2865f826d6
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
require 'spec_helper' describe Viking do it { should respond_to :logger } it { should respond_to :default_engine } it { should respond_to :connect_options } it { should respond_to :default_instance } describe ".connect" do it "should load the Akismet engine" do Viking.connect('akismet', {}).should be_a_kind_of(Viking::Akismet) end it "should load the Akismet engine with Symbol" do Viking.connect(:akismet, {}).should be_a_kind_of(Viking::Akismet) end it "should be nil if the engine is nil" do Viking.connect(nil, {}).should be_nil end it "should be nil if the engine is blank" do Viking.connect('', {}).should be_nil end end describe ".enabled?" do it "should not be enabled if a default instance has not be initialized" do Viking.should_not be_enabled end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the_viking-1.0.0 | spec/viking/viking_spec.rb |