Sha256: 2ce5639f266fc1be065b49ca66b33854455c49f4809a14ab3e1b05c931662467
Contents?: true
Size: 698 Bytes
Versions: 7
Compression:
Stored size: 698 Bytes
Contents
require "spec_helper" describe Hive::Messages do describe "class methods" do describe ".configure" do let(:base_path) { "http://localhost:3000" } before(:each) do Hive::Messages.configure do |config| config.base_path = base_path end end it "creates a Configuration instance" do expect(Hive::Messages.configuration).to be_instance_of(Hive::Messages::Configuration) end it "set the Hive::Paths.base" do expect(Hive::Paths.base).to eq(base_path) end it "set the base_path on the Configuration" do expect(Hive::Messages.configuration.base_path).to eq(base_path) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems