Module: Rectify::RSpec::Helpers
- Includes:
- Wisper::RSpec::BroadcastMatcher
- Defined in:
- lib/rectify/rspec/helpers.rb
Instance Method Summary collapse
Instance Method Details
#stub_form(attributes) ⇒ Object
11 12 13 |
# File 'lib/rectify/rspec/helpers.rb', line 11 def stub_form(attributes) Rectify::StubForm.new(attributes) end |
#stub_query(query_class, options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/rectify/rspec/helpers.rb', line 6 def stub_query(query_class, = {}) results = .fetch(:results, []) allow(query_class).to receive(:new) { StubQuery.new(results) } end |