Skip to content

Instantly share code, notes, and snippets.

@MarkMenard
Created April 7, 2010 20:49
Show Gist options
  • Save MarkMenard/359434 to your computer and use it in GitHub Desktop.
Save MarkMenard/359434 to your computer and use it in GitHub Desktop.
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
describe Scm::OnHandReportsController do
#Delete these examples and add some real ones
it "should use Scm::OnHandReportsController" do
controller.should be_an_instance_of(Scm::OnHandReportsController)
end
describe "GET 'index'" do
describe "lookingup by warehouse area" do
it "shoule use the find by warehouse area finder" do
Lot.expects(:find_on_hand_by_warehouse_area)
get :index, :warehouse_area_id => '37'
end
end
describe "when looking up on hand for a warehouse" do
it "should use the find by warehouse finder" do
Lot.expects(:find_on_hand_by_warehouse)
get :index, :warehouse_id => '37'
end
end
end # GET index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment