Sha256: a9528f44806154b450056803451ea134ea7061fbfb7d3a09c8c94fc829346f3a
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
shared_examples_for "a model with an index action" do |instance_methods = []| describe ".all" do it "returns every model" do VCR.use_cassette("#{classname}_index") do objects = described_class.all expect(objects).not_to be_empty objects.each do |object| expect(object).to be_a described_class instance_methods.each do |instance_method| expect(object).to respond_to instance_method end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
namely-0.0.1 | spec/shared_examples/a_model_with_an_index_action.rb |