spec/lib/feeder/configuration_spec.rb in feeder-0.2.0 vs spec/lib/feeder/configuration_spec.rb in feeder-0.3.0
- old
+ new
@@ -3,9 +3,13 @@
describe Feeder::Configuration do
it "sets the observers to an empty array upon initialization" do
expect(subject.observables).to eq [ ]
end
+ it "sets a default sort order upon initialization" do
+ expect(subject.sort_order).to eq({ created_at: :desc })
+ end
+
describe "#add_observable" do
it "adds an observable to @observables" do
subject.add_observable "SomeObservable"
expect(subject.observables).to match_array [ "SomeObservable" ]