@@ -33,43 +33,43 @@ class MyModel
3333 context "by tagged_with" do
3434 let ( :models ) { MyModel . tagged_with ( 'interesting' ) }
3535 it "locates tagged objects" do
36- models . include? ( model ) . should be_true
36+ models . include? ( model ) . should be_truthy
3737 end
3838 end
3939 context "by tagged_with_all using an array" do
4040 let ( :models ) { MyModel . tagged_with_all ( [ 'interesting' , 'good' ] ) }
4141 it "locates tagged objects" do
42- models . include? ( model ) . should be_true
42+ models . include? ( model ) . should be_truthy
4343 end
4444 end
4545 context "by tagged_with_all using strings" do
4646 let ( :models ) { MyModel . tagged_with_all ( 'interesting' , 'good' ) }
4747 it "locates tagged objects" do
48- models . include? ( model ) . should be_true
48+ models . include? ( model ) . should be_truthy
4949 end
5050 end
5151 context "by tagged_with_all when tag not included" do
5252 let ( :models ) { MyModel . tagged_with_all ( 'interesting' , 'good' , 'mcdonalds' ) }
5353 it "locates tagged objects" do
54- models . include? ( model ) . should be_false
54+ models . include? ( model ) . should be_falsey
5555 end
5656 end
5757 context "by tagged_with_any using an array" do
5858 let ( :models ) { MyModel . tagged_with_any ( [ 'interesting' , 'mcdonalds' ] ) }
5959 it "locates tagged objects" do
60- models . include? ( model ) . should be_true
60+ models . include? ( model ) . should be_truthy
6161 end
6262 end
6363 context "by tagged_with_any using strings" do
6464 let ( :models ) { MyModel . tagged_with_any ( 'interesting' , 'mcdonalds' ) }
6565 it "locates tagged objects" do
66- models . include? ( model ) . should be_true
66+ models . include? ( model ) . should be_truthy
6767 end
6868 end
6969 context "by tagged_with_any when tag not included" do
7070 let ( :models ) { MyModel . tagged_with_any ( 'hardees' , 'wendys' , 'mcdonalds' ) }
7171 it "locates tagged objects" do
72- models . include? ( model ) . should be_false
72+ models . include? ( model ) . should be_falsey
7373 end
7474 end
7575 end
@@ -142,7 +142,7 @@ class MyModel
142142 end
143143
144144 it "should generate the index collection model based on model" do
145- MyModel . tags_index_collection . should be_a Moped ::Collection
145+ MyModel . tags_index_collection . should be_a Mongo ::Collection
146146 end
147147
148148 context "retrieving index" do
@@ -241,8 +241,8 @@ class MyModel
241241 related = MyModel . find_related ( [ @george , @ringo ] )
242242 related . should have_at_least ( 1 ) . items
243243 related [ 0 ] . should == @someone_else # 5 matches
244- related . include? ( @george ) . should be_false
245- related . include? ( @ringo ) . should be_false
244+ related . include? ( @george ) . should be_falsey
245+ related . include? ( @ringo ) . should be_falsey
246246 end
247247
248248 it 'for multiple items as input, it should order based on tag matches' do
0 commit comments