Sha256: 69f633ecc62984ffa3b03c82fc5efa1cf0d510f88e52c9382b1be6f067c9dc36
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' module Credere describe EntriesController do routes { Credere::Engine.routes } def mock_entry(stubs={}) @mock_entry ||= FactoryGirl.create(:entry_with_credit_and_debit) end describe "GET index" do it "assigns all entries as @entries" do allow(Entry).to receive_message_chain(:per, :order).and_return([mock_entry]) get :index expect(assigns[:entries]).to eq([mock_entry]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
credere-0.10.3 | spec/controllers/entries_controller_spec.rb |
credere-0.10.2 | spec/controllers/entries_controller_spec.rb |
credere-0.10.1 | spec/controllers/entries_controller_spec.rb |