Sha256: e22d34eb4538b18bb51be90e819473e7239c0aa421faaec3e88ca33cfab11b8f

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

require 'spec_helper'

describe Feeder::Configuration do
  it "sets the observers to an empty array upon initialization" do
    expect(subject.observables).to eq({})
  end

  it "sets default scopes order upon initialization" do
    expect(subject.scopes.count).to eq 1
  end

  describe ".observe" do
    it "adds an observable to @observables" do
      subject.observe "SomeObservable"

      expect(subject.observables).to eq({ "SomeObservable" => {} })
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feeder-0.5.1 spec/lib/feeder/configuration_spec.rb