Skip to content

Commit 0889081

Browse files
committed
RUBY-844 remove attr_reader and clean up test
1 parent f0dd317 commit 0889081

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/mongo/cursor.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class Cursor
2323
include Mongo::ReadPreference
2424

2525
attr_reader :collection, :selector, :fields,
26-
:order, :hint, :snapshot, :timeout,
27-
:full_collection_name, :transformer,
26+
:order, :hint, :snapshot, :timeout, :transformer,
2827
:options, :cursor_id, :show_disk_loc,
2928
:comment, :compile_regex, :read, :tag_sets,
3029
:acceptable_latency

test/unit/cursor_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ class Mongo::Cursor
141141
context 'when an alternate namespace is specified' do
142142

143143
should 'use the alternate namespace' do
144-
assert_equal('other_db.other_collection',
145-
Cursor.new(@collection, :ns => 'other_db.other_collection').full_collection_name)
144+
cursor = Cursor.new(@collection, :ns => 'other_db.other_collection')
145+
assert_equal('other_db.other_collection', cursor.full_collection_name)
146146
end
147147
end
148148

0 commit comments

Comments
 (0)