require File.dirname(__FILE__) + '/../../spec_helper'
describe Admin::InvoicesController, "when kicking a non-settled invoice" do
before(:each) do
login_as(mock_model(Person, :is_administrator? => true))
controller.stub!(:load_person)
controller.stub!(:load_invoice)
controller.instance_variable_set("@person", mock_model(Person))
controller.instance_variable_set("@invoice", mock_model(Invoice))
end
it "PUT 'settle' should check if the invoice is settled" do
put 'settle', :person_id => :anything, :id => :whatever
end
end