Sha256: 6bffbccb8af2a5c68408eba268e15ce49160a637cdc19c06cebcabc53dc7d9db
Contents?: true
Size: 796 Bytes
Versions: 13
Compression:
Stored size: 796 Bytes
Contents
require "spec_helper" describe Lita do it "memoizes a Config" do expect(described_class.config).to be_a(Lita::Config) expect(described_class.config).to eql(described_class.config) end describe ".configure" do it "yields the Config object" do described_class.configure { |c| c.robot.name = "Not Lita" } expect(described_class.config.robot.name).to eq("Not Lita") end end describe ".redis" do it "memoizes a Redis::Namespace" do expect(described_class.redis).to respond_to(:namespace) expect(described_class.redis).to eql(described_class.redis) end end describe ".run" do before { Lita.config } it "runs a new Robot" do expect_any_instance_of(Lita::Robot).to receive(:run) described_class.run end end end
Version data entries
13 entries across 13 versions & 1 rubygems