Sha256: 8333e84eb9431d29113efabfac2e122ace48d135cefb01771d652e1da420da5e

Contents?: true

Size: 745 Bytes

Versions: 9

Compression:

Stored size: 745 Bytes

Contents

require 'spec_helper'

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

    #def mock_account(stubs={})
      #@mock_account ||= mock_model(Account, stubs)
    #end

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

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plutus-0.11.0 spec/controllers/accounts_controller_spec.rb
plutus-0.10.1 spec/controllers/accounts_controller_spec.rb
plutus-0.10.0 spec/controllers/accounts_controller_spec.rb
plutus-0.9.0 spec/controllers/accounts_controller_spec.rb
plutus-0.8.1 spec/controllers/accounts_controller_spec.rb
plutus-0.8.0 spec/controllers/accounts_controller_spec.rb
plutus-0.7.4 spec/controllers/accounts_controller_spec.rb
plutus-0.7.2 spec/controllers/accounts_controller_spec.rb
plutus-0.7.0 spec/controllers/accounts_controller_spec.rb