spec/lib/adapters/sequel_spec.rb in protector-0.3.2 vs spec/lib/adapters/sequel_spec.rb in protector-0.3.3

- old
+ new

@@ -35,9 +35,17 @@ end Fluffy.all.each{|f| Loony.create fluffy_id: f.id, string: 'zomgstring' } end + describe Protector::Adapters::Sequel do + it "finds out whether object is Sequel relation" do + Protector::Adapters::Sequel.is?(Dummy).should == true + Protector::Adapters::Sequel.is?(Dummy.where).should == true + end + end + + # # Model instance # describe Protector::Adapters::Sequel::Model do let(:dummy) do \ No newline at end of file