Skip to content

Commit

Permalink
Refactored to reflect the changes made in the index action.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 24, 2010
1 parent a3bd0f0 commit 81d6291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/views/parking/index.html.erb_spec.rb
Expand Up @@ -4,7 +4,7 @@
context "No tickets have been found" do
before(:each) do
Resource.stub!(:all).and_return [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
assigns[:resources] = [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
assigns[:tickets] = [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
render
end

Expand Down Expand Up @@ -35,7 +35,7 @@
context "parked items present" do
before(:each) do
Resource.stub!(:all).and_return [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
assigns[:resources] = [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
assigns[:tickets] = [mock_model(Resource, :name => "baphled", :project_id => '50164').as_null_object]
render
end

Expand Down

0 comments on commit 81d6291

Please sign in to comment.