Sha256: aed80433f0a99f63950489e0249efd0a956c478e4cfb0b92b89efecdba902897

Contents?: true

Size: 809 Bytes

Versions: 5

Compression:

Stored size: 809 Bytes

Contents

require 'spec_helper'

module Plutus
  describe TransactionsController do
    # Run these tests if you enable routing in your rails app. See README

    #def mock_transaction(stubs={})
      #@mock_transaction ||= mock_model(Transaction, stubs)
    #end

    #describe "GET index" do
      #it "assigns all transactions as @transactions" do
        #Transaction.stub(:find).with(:all).and_return([mock_transaction])
        #get :index
        #assigns[:transactions].should == [mock_transaction]
      #end
    #end

    #describe "GET show" do
      #it "assigns the requested transaction as @transaction" do
        #Transaction.stub(:find).with("37").and_return(mock_transaction)
        #get :show, :id => "37"
        #assigns[:transaction].should equal(mock_transaction)
      #end
    #end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plutus-0.8.1 spec/controllers/transactions_controller_spec.rb
plutus-0.8.0 spec/controllers/transactions_controller_spec.rb
plutus-0.7.4 spec/controllers/transactions_controller_spec.rb
plutus-0.7.2 spec/controllers/transactions_controller_spec.rb
plutus-0.7.0 spec/controllers/transactions_controller_spec.rb