Created
April 7, 2010 20:49
-
-
Save MarkMenard/359434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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