Skip to content

Commit

Permalink
Finished incomplete fdv/typo merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jeady committed Aug 2, 2012
1 parent c95ea13 commit eb2362a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions spec/controllers/admin/categories_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,6 @@
assert_response :redirect, :action => 'index'
end

it "test_create" do
cat = Factory(:category)
Category.should_receive(:find).with(:all).and_return([])
Category.should_receive(:new).and_return(cat)
cat.should_receive(:save!).and_return(true)
post :edit, 'category' => { :name => "test category" }
assert_response :redirect
assert_redirected_to :action => 'new'
end

describe "test_new" do
before(:each) do
get :new
end

it 'should render template view' do
assert_template 'new'
assert_tag :tag => "table",
:attributes => { :id => "category_container" }
end
end

describe "test_edit" do
before(:each) do
get :edit, :id => Factory(:category).id
Expand Down

0 comments on commit eb2362a

Please sign in to comment.