lib/generators/rspec/query/templates/query_spec.rb in riveter-0.2.0 vs lib/generators/rspec/query/templates/query_spec.rb in riveter-0.2.1
- old
+ new
@@ -15,11 +15,11 @@
it { subject.relation.should_not be_nil }
it { subject.has_data?.should be_truthy }
it {
block = Mock::Block.new
expect(block).to receive(:call).at_least(:once)
- subject.find_each &block
+ subject.find_each(&block)
}
end
context "without data" do
@@ -29,10 +29,10 @@
it { subject.relation.should_not be_nil }
it { subject.has_data?.should be_falsey }
it {
block = Mock::Block.new
expect(block).to_not receive(:call)
- subject.find_each &block
+ subject.find_each(&block)
}
end
pending "add some examples to (or delete) #{__FILE__}"