Permalink
Browse files

Grouped a couple of examples together.

  • Loading branch information...
1 parent e6dda26 commit 0d157691b0a0cc940a31057c50c5d9c90501f53e @razielgn committed Jan 8, 2012
Showing with 14 additions and 12 deletions.
  1. +14 −12 spec/querying_spec.rb
View
@@ -26,21 +26,23 @@
Post.delete_all
end
- it 'should return a criteria when calling its methods' do
- Post.all.should be_a(Tyrion::Criteria)
- end
+ describe '.all' do
+ it 'should return a criteria when calling its methods' do
+ Post.all.should be_a(Tyrion::Criteria)
+ end
- it 'should create a Criteria instance and passing the model\'s class name' do
- Post.all.klass.should == Post.send(:klass_name)
- end
+ it 'should create a Criteria instance and passing the model\'s class name' do
+ Post.all.klass.should == Post.send(:klass_name)
+ end
- it 'should return an enumerable' do
- Post.all.class.ancestors.should include(Enumerable)
- end
+ it 'should return an enumerable' do
+ Post.all.class.ancestors.should include(Enumerable)
+ end
- it 'should return an iterable collection of Tyrion::Documents' do
- Post.all.each do |doc|
- doc.should be_a(Tyrion::Document)
+ it 'should return an iterable collection of Tyrion::Documents' do
+ Post.all.each do |doc|
+ doc.should be_a(Tyrion::Document)
+ end
end
end

0 comments on commit 0d15769

Please sign in to comment.