Skip to content

Commit

Permalink
Use #add when configuring serializers/readers on tests
Browse files Browse the repository at this point in the history
[Related to #11]
  • Loading branch information
gonzedge committed Jan 9, 2017
1 parent e4a9876 commit 5293db7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/lib/rambling/trie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

before do
Rambling::Trie.config do |c|
c.readers[:default] = reader
c.readers.add :default, reader
c.readers.default = reader
end
end
Expand Down Expand Up @@ -88,10 +88,10 @@

before do
Rambling::Trie.config do |c|
c.serializers[:default] = default_serializer
c.serializers[:marshal] = marshal_serializer
c.serializers[:yml] = yaml_serializer
c.serializers[:yaml] = yaml_serializer
c.serializers.add :default, default_serializer
c.serializers.add :marshal, marshal_serializer
c.serializers.add :yml, yaml_serializer
c.serializers.add :yaml, yaml_serializer

c.serializers.default = default_serializer
end
Expand Down Expand Up @@ -137,9 +137,9 @@

before do
Rambling::Trie.config do |c|
c.serializers[:default] = default_serializer
c.serializers[:marshal] = marshal_serializer
c.serializers[:yml] = yaml_serializer
c.serializers.add :default, default_serializer
c.serializers.add :marshal, marshal_serializer
c.serializers.add :yml, yaml_serializer

c.serializers.default = default_serializer
end
Expand Down

0 comments on commit 5293db7

Please sign in to comment.