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

Version Path
hive-messages-1.0.7 spec/lib/hive/messages_spec.rb
hive-messages-1.0.6 spec/lib/hive/messages_spec.rb
hive-messages-1.0.5 spec/lib/hive/messages_spec.rb
hive-messages-1.0.4 spec/lib/hive/messages_spec.rb
hive-messages-1.0.3 spec/lib/hive/messages_spec.rb
hive-messages-1.0.2 spec/lib/hive/messages_spec.rb
hive-messages-1.0.1 spec/lib/hive/messages_spec.rb