Sha256: 67df897ae0c57a9bfa46c93524a6d0063ca59498ca88794f260d7b0ef43c86a1
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' module ValidData describe Runner do describe "#run" do let(:user_model) { double(name: 'User', count: 1, find_each: users, abstract_class?: false) } let(:dealer_model) { double(name: 'Dealer', count: 1, find_each: dealers, abstract_class?: false) } let(:users) { [double(valid?: true)] } let(:dealers) { [double(valid?: true)] } let(:adapter) { double(descendants: [user_model, dealer_model]) } let(:runner) { Runner.new(30, adapter) } it "prints the report" do pending runner.run end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
valid_data-0.0.1 | spec/lib/valid_data/runner_spec.rb |