it "id 2を削除(通常の削除)" do
get 'destroy', :id => 2
Category.find_by_id(2).should be_nil
- Category.find_by_id(4).position.should == 2
+ Category.find_by_id(4).position.should == 1
end
end
assigns[:feature].dir_name.should == "test"
assigns[:feature].feature_type.should == 2
assigns[:feature].image_resource_id.should_not be_nil
- assigns[:feature].image_resource_id.should == resource_max + 1
+ assigns[:feature].image_resource_id.should > resource_max
response.should render_template("admin/features/confirm.html.erb")
#validateエラーがある場合
post 'confirm', :feature => {:name => ""}
require File.dirname(__FILE__) + '/../spec_helper'
describe Customer do
- fixtures :customers, :zips
+ fixtures :customers, :zips, :constants
before(:each) do
@customer = customers :valid_signup
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Style do
- fixtures :styles, :style_categories
+ fixtures :styles, :style_categories,:product_styles,:products
before(:each) do
@style = styles(:can_incriment)
end