spec/lib/feeder/configuration_spec.rb in feeder-0.3.0 vs spec/lib/feeder/configuration_spec.rb in feeder-0.5.1

- old
+ new

@@ -1,19 +1,19 @@ require 'spec_helper' describe Feeder::Configuration do it "sets the observers to an empty array upon initialization" do - expect(subject.observables).to eq [ ] + expect(subject.observables).to eq({}) end - it "sets a default sort order upon initialization" do - expect(subject.sort_order).to eq({ created_at: :desc }) + it "sets default scopes order upon initialization" do + expect(subject.scopes.count).to eq 1 end - describe "#add_observable" do + describe ".observe" do it "adds an observable to @observables" do - subject.add_observable "SomeObservable" + subject.observe "SomeObservable" - expect(subject.observables).to match_array [ "SomeObservable" ] + expect(subject.observables).to eq({ "SomeObservable" => {} }) end end end