spec/controllers/transactions_controller_spec.rb in plutus-0.5.2 vs spec/controllers/transactions_controller_spec.rb in plutus-0.7.0

- old
+ new

@@ -1,25 +1,28 @@ require 'spec_helper' -describe TransactionsController do +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 + #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