spec/riveter/query_spec.rb in riveter-0.0.7 vs spec/riveter/query_spec.rb in riveter-0.0.8
- old
+ new
@@ -56,16 +56,16 @@
describe "#has_data?" do
it "should yield true when data available" do
allow_any_instance_of(TestQuery).to receive(:relation) { [1] }
query = TestQuery.new(nil)
- query.has_data?.should be_true
+ query.has_data?.should be_truthy
end
it "should yield false when no data available" do
allow_any_instance_of(TestQuery).to receive(:relation) { [] }
query = TestQuery.new(nil)
- query.has_data?.should be_false
+ query.has_data?.should be_falsey
end
end
end