spec/base_spec.rb in reviewed-0.0.5 vs spec/base_spec.rb in reviewed-0.0.6
- old
+ new
@@ -13,9 +13,15 @@
describe Reviewed::Base do
before(:each) do
Reviewed.api_key = TEST_KEY
end
+ describe 'Class' do
+ it 'responds to model_name' do
+ Reviewed::Example.model_name.should eql("Reviewed::Example")
+ end
+ end
+
describe 'initialization' do
it 'raises an error if a resource ID is not present' do
expect {
Reviewed::Example.new
}.to raise_error(Reviewed::ResourceError)