spec/groupdocs/api/entity_spec.rb in groupdocs-0.2.2 vs spec/groupdocs/api/entity_spec.rb in groupdocs-0.2.3
- old
+ new
@@ -48,7 +48,11 @@
describe '#variable_to_accessor' do
it 'converts instance variable symbol to accessor method symbol' do
subject.send(:variable_to_accessor, :@test).should == :test
end
+
+ it 'converts camelized words to underscored' do
+ subject.send(:variable_to_accessor, :@TestOneAndTWO).should == :test_one_and_two
+ end
end
end