spec/mongoid/token_spec.rb in mongoid-ids-0.1.1 vs spec/mongoid/token_spec.rb in mongoid-ids-0.1.7
- old
+ new
@@ -281,12 +281,12 @@
expect(document.class.public_methods).to include(:find_by_other_token)
end
end
describe '.to_param' do
- it 'should return the token' do
+ it 'should be removed from this gem' do
document_class.send(:token, :token)
- expect(document.to_param).to eq document.token
+ expect(document.to_param).to eq document.id.to_s # why to_s?
end
end
describe 'collision resolution on id field' do
before(:each) do