spec/groupdocs/api/entity_spec.rb in groupdocs-0.2.11 vs spec/groupdocs/api/entity_spec.rb in groupdocs-0.3.0
- old
+ new
@@ -53,6 +53,16 @@
it 'converts camelized words to underscored' do
subject.send(:variable_to_accessor, :@TestOneAndTWO).should == :test_one_and_two
end
end
+
+ describe '#accessor_to_variable' do
+ it 'converts accessor method symbol to instance variable symbol' do
+ subject.send(:accessor_to_variable, :test).should == :@Test
+ end
+
+ it 'converts underscored words to camelized ' do
+ subject.send(:accessor_to_variable, :test_one_and_two).should == :@TestOneAndTwo
+ end
+ end
end